Skip to content

Commit

Permalink
chrome only
Browse files Browse the repository at this point in the history
  • Loading branch information
dcalde committed Dec 22, 2020
1 parent bfc2502 commit 0bfdb55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def clean_description(description: str) -> str:
# chrome_options.add_argument('--disable-dev-shm-usage')
# chrome_options.add_argument('--no-sandbox')

with Browser('chrome', executable_path='/usr/local/bin/chromedriver', headless=True, options=chrome_options) as browser:
# with Browser('chrome', options=chrome_options) as browser:
# with Browser('chrome', executable_path='/usr/local/bin/chromedriver', headless=True, options=chrome_options) as browser:
with Browser('chrome', options=chrome_options) as browser:
browser.visit(URL)
links = browser.find_by_css(".list-item > a")
for link in links:
Expand Down

0 comments on commit 0bfdb55

Please sign in to comment.