Install Selenium and its webdriver

pip install -U selenium

For Firefox:

from the link "https://github.com/mozilla/geckodriver/releases" to download related file

wget https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz

tar-xvzf geckodriver-v0.11.1-linux64.tar.gz

rm geckodriver-v0.11.1-linux64.tar.gz

chmod+x geckodriver

cp geckodriver /usr/local/bin/


to uncompressed a *.zip file using

unzip geckodriver-0.14.0.zip

你可能感兴趣的:(Install Selenium and its webdriver)