browser.py 文件源码

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

项目:insta_browser 作者: aLkRicha 项目源码 文件源码
def __init__(self, debug=False, chrome=False, cookie_path=None, log_path=None, db_path=None,
                 exclude=None):
        options = webdriver.ChromeOptions()
        options.add_argument('headless')
        options.add_argument('--window-size=900,768')
        self.browser = webdriver.Chrome(chrome_options=options)
        self.browser.implicitly_wait(10)

        self.cookie_path = cookie_path
        self.exclude = exclude or []
        self.chrome = chrome
        self.logger = Logger(log_path, debug)
        self.db = BrowserDB(self.logger, db_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号