安装selenium:
sudo apt-get install python
sudo apt-get install python-pip
pip install –U selenium
安装Chromedriver:
https://sites.google.com/a/chromium.org/chromedriver/downloads
sudo apt-get install unzip
wget -N http://chromedriver.storage.googleapis.com/2.28/chromedriver_linux64.zip -P ~/Downloadsunzip ~/Downloads/chromedriver_linux64.zip-d ~/Downloads
chmod +x ~/Downloads/chromedriver
sudo mv -f ~/Downloads/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