Spaces:
Sleeping
Sleeping
Delete setup.sh
Browse files
setup.sh
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
# Update package list and install dependencies
|
4 |
-
apt-get update
|
5 |
-
apt-get install -y wget unzip
|
6 |
-
|
7 |
-
# Install Google Chrome
|
8 |
-
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
|
9 |
-
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
|
10 |
-
apt-get update
|
11 |
-
apt-get install -y google-chrome-stable
|
12 |
-
|
13 |
-
# Install ChromeDriver
|
14 |
-
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+\.\d+')
|
15 |
-
CHROMEDRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
|
16 |
-
wget -N https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
|
17 |
-
unzip chromedriver_linux64.zip
|
18 |
-
mv chromedriver /usr/local/bin/
|
19 |
-
chmod +x /usr/local/bin/chromedriver
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|