centos安装google-chrome和chromedriver 配置python selenium环境
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo yum localinstall google-chrome-stable_current_x86_64.rpm
#查看google-chrome版本
google-chrome --version
#Google Chrome 83.0.4103.116
下载chromedriver:
下载地址:https://chromedriver.storage.googleapis.com/index.html
镜像地址:https://npm.taobao.org/mirrors/chromedriver/
选择和google-chrome对应的chromedriver版本,参考:https://sites.google.com/a/chromium.org/chromedriver/downloads
选择:chromedriver版本ChromeDriver 83.0.4103.14
wget https://npm.taobao.org/mirrors/chromedriver/83.0.4103.14/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
#直接复制到/usr/bin
sudo cp -f chromedriver /usr/bin/chromedriver