Skip to content

Instantly share code, notes, and snippets.

@quetzaluz
Created July 17, 2014 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quetzaluz/3869f249de4bf76838d7 to your computer and use it in GitHub Desktop.
Save quetzaluz/3869f249de4bf76838d7 to your computer and use it in GitHub Desktop.
Selenium Setup
// 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