chromedriver安装

夙愿已清 提交于 2020-02-12 12:11:16

3.chromedriver安装

下载地址:

http://npm.taobao.org/mirrors/chromedriver/

按照chrome版本进行选择:

没有win64,下载个win32试试。

解压后将exe文件拷贝到chrome的目录下C:\......l\Google\Chrome\Application

将C:\......l\Google\Chrome\Application这个目录添加到环境变量path中

验证环境

>>> from selenium import webdriver
>>> dr=webdriver.Chrome()>>> dr.get('https://www.baidu.com/')



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!