Centos7安装selenium、chrome、chromedriver

1、安装python环境,再pip install selenium

2、安装chrome:

yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

3、安装chromedriver:

[root@localhost ~]# google-chrome -version
[root@localhost ~]# Google Chrome 88.0.4324.96
# 根据谷歌的版本对应驱动的版本号: https://npm.taobao.org/mirrors/chromedriver/
# 下载对应的驱动 88.0.4324.96: https://npm.taobao.org/mirrors/chromedriver/88.0.4324.96/chromedriver_linux64.zip
# unzip chromedriver_linux64.zip
# mv chromedriver /usr/bin/chromedriver

 

posted @ 2021-01-27 22:08  feibazhf  阅读(243)  评论(0编辑  收藏  举报