Skip to content

Instantly share code, notes, and snippets.

@ddavison
Last active February 24, 2022 17:31
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ddavison/936d843ad17140021fad to your computer and use it in GitHub Desktop.
Save ddavison/936d843ad17140021fad to your computer and use it in GitHub Desktop.
Chromedriver Download Scripts
#!/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
#!/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
#!/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