install selenium
yum install selenium
2. install chrome
yum install epel-release yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
3.install ChromeDriver
3.1 check chrome version
google-chrome-stable --version Google Chrome 102.0.5005.115
3.2 download the ChromeDriver match the chrome and install it
go to the taobao mirror page https://npm.taobao.org/mirrors/chromedriver/
wget unzip chromedirver_linux64.zip mv chromedriver /usr/bin/ chmod 777 /usr/bin/chromedriver
3.3 check ChromeDriver Version
chromedriver -v
本文为Adamin90原创文章,转载无需和我联系,但请注明来自http://www.lixiaopeng.top