背景
今天使用Python进行爬虫,运行代码报错如下:
Message: session not created: This version of ChromeDriver only supports Chrome version 83
分析原因:是Chromedriver与chorme浏览器版本不一致的原因。
1、chorme浏览器 “设置” 中查看版本信息
2、去下面任意网站下载对应驱动,如果没有完全匹配的版本,找一个最接近的就可以了。
官方:http://chromedriver.storage.googleapis.com/index.html
阿里:http://npm.taobao.org/mirrors/chromedriver/