-
-
Save amondnet/3b0094773de0ed5182fce9eb10ae24e5 to your computer and use it in GitHub Desktop.
Chromedriver Download Scripts
This file contains 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 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/$latest/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 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