Created
July 17, 2014 00:48
-
-
Save quetzaluz/3869f249de4bf76838d7 to your computer and use it in GitHub Desktop.
Selenium Setup
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
// Obviously versions will change. | |
// Reference for how to set up a headless scraper on EC2 | |
sudo apt-get update | |
sudo apt-get -y install openjdk-7-jre-headless | |
sudo apt-get -y install xvfb | |
sudo apt-get -y install xserver-xorg-core | |
sudo apt-get -y install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get -y install google-chrome-stable | |
wget http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip | |
sudo apt-get -y install unzip | |
unzip chromedriver_linux64.zip | |
sudo cp chromedriver /usr/local/bin | |
sudo wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment