Skip to content

Commit

Permalink
trying to fix the error of ssl_client_socket_impl.cc
Browse files Browse the repository at this point in the history
I'm not sure the options are related to it.
  • Loading branch information
hajunho committed Jun 25, 2020
1 parent f8f1731 commit 4396a46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion collect_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import platform
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
import os.path as osp


Expand All @@ -45,7 +46,11 @@ def __init__(self):
if not osp.exists(executable):
raise FileNotFoundError('Chromedriver file should be placed at {}'.format(executable))

self.browser = webdriver.Chrome(executable)
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
self.browser = webdriver.Chrome(executable, chrome_options=chrome_options)

browser_version = 'Failed to detect version'
chromedriver_version = 'Failed to detect version'
Expand Down

0 comments on commit 4396a46

Please sign in to comment.