def __init__(self):
self.url = 'https://www.facebook.com'
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications": 2}
chrome_options.add_experimental_option("prefs", prefs)
self.driver = webdriver.Chrome(chrome_options=chrome_options)#,'__path__' maybe required for Windows
self.driver.get(self.url)
AutoShareFacebook.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录