Skip to content

Commit

Permalink
modified main.py for github actions and yml file for chrome config
Browse files Browse the repository at this point in the history
  • Loading branch information
hiitsmocha committed Nov 11, 2024
1 parent d14fde3 commit 3262f94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test_scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ jobs:
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
sudo curl -Lo /usr/local/bin/chromedriver "https://chromedriver.storage.googleapis.com/$CHROME_VERSION/chromedriver_linux64.zip"
echo "Chrome version is $CHROME_VERSION"
CHROMEDRIVER_VERSION=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
echo "Matching ChromeDriver version is $CHROMEDRIVER_VERSION"
curl -Lo /usr/local/bin/chromedriver "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"
sudo apt-get install -y unzip
sudo unzip /usr/local/bin/chromedriver -d /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
- name: Run Scraper
Expand Down

0 comments on commit 3262f94

Please sign in to comment.