diff --git a/collect_links.py b/collect_links.py index aaf6a47..eb7b682 100644 --- a/collect_links.py +++ b/collect_links.py @@ -23,6 +23,7 @@ from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options +from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager import os.path as osp @@ -53,7 +54,7 @@ def __init__(self, no_gui=False, proxy=None): chrome_options.add_argument('--headless') if proxy: chrome_options.add_argument("--proxy-server={}".format(proxy)) - self.browser = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=chrome_options) + self.browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) browser_version = 'Failed to detect version' chromedriver_version = 'Failed to detect version'