hunter.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:selenium-toy 作者: blackmatrix7 项目源码 文件源码
def __init__(self):
        # ??????
        options = webdriver.ChromeOptions()
        prefs = {"profile.managed_default_content_settings.images": 2}
        options.add_experimental_option("prefs", prefs)
        if platform.system() == 'Darwin':
            executable_path = '{0}/{1}'.format(current_config.PROJ_PATH, 'chromedriver')
        else:
            executable_path = 'chromedriver.exe'
        self.driver = webdriver.Chrome(executable_path=executable_path, chrome_options=options)
        self.driver.implicitly_wait(current_config['TIME_OUT'])
        self.driver.set_window_size(1440, 900)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号