Skip to content

Instantly share code, notes, and snippets.

@moziauddin
Last active December 16, 2018 06:49
Show Gist options
  • Save moziauddin/56f84e935f3da76dd7648a098f33cb42 to your computer and use it in GitHub Desktop.
Save moziauddin/56f84e935f3da76dd7648a098f33cb42 to your computer and use it in GitHub Desktop.
Selenium
#!/bin/bash
sudo apt-get install libxss1 libappindicator1 libindicator7
sudo apt-get install libxi6 libgconf-2-4
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
sudo apt-get install xvfb
sudo apt-get install unzip
wget -N http://chromedriver.storage.googleapis.com/2.26/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
sudo apt-get install python-pip
pip install pyvirtualdisplay selenium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment