Last active
February 24, 2022 17:31
-
-
Save ddavison/936d843ad17140021fad to your computer and use it in GitHub Desktop.
Chromedriver Download Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#### | |
# Author: ddavison | |
# Description: Download the Linux chromedriver into the current directory | |
#### | |
function downloadchrome { | |
# latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
version="2.9" | |
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_linux32.zip" | |
rm /tmp/chromedriver_linux32.zip | |
wget -P /tmp $download_location | |
unzip /tmp/chromedriver_linux32.zip -d . | |
mv ./chromedriver ./chromedriver.linux | |
chmod u+x ./chromedriver.linux | |
} | |
downloadchrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#### | |
# Author: ddavison | |
# Description: Download the Linux chromedriver into the current directory | |
#### | |
function downloadchrome { | |
#latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
version="2.9" | |
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_linux64.zip" | |
rm /tmp/chromedriver_linux64.zip | |
wget -P /tmp $download_location | |
unzip /tmp/chromedriver_linux64.zip -d . | |
mv ./chromedriver ./chromedriver.linux | |
chmod u+x ./chromedriver.linux | |
} | |
downloadchrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#### | |
# Author: ddavison | |
# Description: Download the Mac chromedriver into the current directory | |
#### | |
function downloadchrome { | |
#latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
version="2.9" | |
download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_mac32.zip" | |
rm /tmp/chromedriver_mac32.zip | |
wget -P /tmp $download_location | |
unzip /tmp/chromedriver_mac32.zip -d . | |
mv ./chromedriver ./chromedriver.mac | |
chmod u+x ./chromedriver.mac | |
} | |
downloadchrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment