Skip to content

Commit

Permalink
Merge pull request YoongiKim#56 from rubai1597/master
Browse files Browse the repository at this point in the history
For latest version of selenium package
  • Loading branch information
YoongiKim authored Sep 5, 2023
2 parents 4ec4227 + 0063d95 commit 43ac453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collect_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 43ac453

Please sign in to comment.