爬虫学习记录(持续更新)
作者:mmseoamin日期:2024-01-19

一、问题记录

1.使用webdriver报错AttributeError: 'str' object has no attribute 'capabilities'

爬虫学习记录(持续更新),在这里插入图片描述,第1张

解决:目前使用的selenium版本是4.11.2,可以不必设置driver.exe的路径,selenium可以自己处理浏览器和驱动程序,因此,使用Selenium Webdriver创建对象

from selenium import webdriver
wd = webdriver.Chrome()