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)
评论列表
文章目录