Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
hiitsmocha committed Nov 12, 2024
1 parent 428f659 commit ab23d2f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/test_scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,28 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y wget
wget -q https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-unstable/google-chrome-unstable_119.0.6053.3-1_amd64.deb
sudo apt install -y ./google-chrome-unstable_108.0.5359.22-1_amd64.deb
sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/google-chrome
wget -q https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-unstable/google-chrome-unstable_108.0.5359.22-1_amd64.deb -O /tmp/google-chrome-unstable_108.0.5359.22-1_amd64.deb
if [ -f "/tmp/google-chrome-unstable_108.0.5359.22-1_amd64.deb" ]; then
sudo apt install -y /tmp/google-chrome-unstable_108.0.5359.22-1_amd64.deb
sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/google-chrome
else
echo "Failed to download Chrome .deb file."
exit 1
fi
- name: Install ChromeDriver
run: |
CHROMEDRIVER_VERSION="108.0.5359.22"
echo "Installing ChromeDriver version $CHROMEDRIVER_VERSION"
curl -Lo /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"
sudo apt-get install -y unzip
sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
if [ -f "/tmp/chromedriver.zip" ]; then
sudo apt-get install -y unzip
sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
else
echo "Failed to download ChromeDriver zip file."
exit 1
fi
- name: Run Scraper
env:
Expand Down

0 comments on commit ab23d2f

Please sign in to comment.