Skip to content

Commit

Permalink
Merge pull request #163 from 16bravo/bugfix/correcting_chrome_driver_v2
Browse files Browse the repository at this point in the history
correcting chrome driver version v2
  • Loading branch information
16bravo authored Apr 23, 2024
2 parents 7647c42 + 444a46a commit 9738fbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/000_scrape_data_manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:

- name: Installed package list
run: apt list --installed

- name: Download ChromeDriver
run: |
wget -q "https://chromedriver.storage.googleapis.com/123.0.6312.0/chromedriver_linux64.zip" -O chromedriver.zip
unzip chromedriver.zip
chmod +x chromedriver
mv chromedriver /usr/local/bin/
- name: Remove Chrome
run: sudo apt purge google-chrome-stable
Expand Down
7 changes: 4 additions & 3 deletions scripts/000_Web_Scraping/001_Scraping_Latest_Matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import sys

'''chrome_service = Service(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install())'''
chrome_driver_path = 'drivers/chromedriver'
chrome_service = Service(chrome_driver_path)
'''chrome_driver_path = 'drivers/chromedriver'
chrome_service = Service(chrome_driver_path)'''

chrome_options = Options()
options = [
Expand All @@ -28,7 +28,8 @@
for option in options:
chrome_options.add_argument(option)

driver = webdriver.Chrome(service=chrome_service, options=chrome_options)
'''driver = webdriver.Chrome(service=chrome_service, options=chrome_options)'''
driver = webdriver.Chrome(executable_path="/usr/local/bin/chromedriver")

url = 'https://www.eloratings.net/latest'

Expand Down

0 comments on commit 9738fbd

Please sign in to comment.