Spaces:
Sleeping
Sleeping
# Update package list and install dependencies | |
apt-get update | |
apt-get install -y wget unzip | |
# Install Google Chrome | |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - | |
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list | |
apt-get update | |
apt-get install -y google-chrome-stable | |
# Install ChromeDriver | |
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+\.\d+') | |
CHROMEDRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION) | |
wget -N https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip | |
unzip chromedriver_linux64.zip | |
mv chromedriver /usr/local/bin/ | |
chmod +x /usr/local/bin/chromedriver |