Skip to content

Commit

Permalink
Merge pull request YoongiKim#36 from ranbims/ranbi/fix_web_drive
Browse files Browse the repository at this point in the history
fix: This version of ChromeDriver only supports Chrome version 87
  • Loading branch information
YoongiKim authored Jul 1, 2021
2 parents 9025101 + 90cf47e commit dc0982b
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -24,6 +24,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 webdriver_manager.chrome import ChromeDriverManager
import os.path as osp


Expand Down Expand Up @@ -51,7 +52,7 @@ def __init__(self, no_gui=False):
chrome_options.add_argument('--disable-dev-shm-usage')
if no_gui:
chrome_options.add_argument('--headless')
self.browser = webdriver.Chrome(executable, chrome_options=chrome_options)
self.browser = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=chrome_options)

browser_version = 'Failed to detect version'
chromedriver_version = 'Failed to detect version'
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ chardet
idna
requests
selenium
webdriver-manager

0 comments on commit dc0982b

Please sign in to comment.