使用selenium进行获取一些数据时,运行时一直报警告:‘DeprecationWarning: use options instead of chrome_options driver = webdriver.Chrome(path, chrome_options=option)’

虽然不是个错误,但还是解决一下,可能是参数进行了替换吧,将chrome_options变成options就行了
DeprecationWarning: use options instead of chrome_options driver = webdriver.Chrome(path, chrome_o
最新推荐文章于 2024-08-18 12:16:02 发布
在使用Selenium获取数据时遇到'DeprecationWarning'警告,提示应将chrome_options替换为options。这表明ChromeDriver的参数已更新,修复此问题只需将代码中的chrome_options改为options即可消除警告。
3797

被折叠的 条评论
为什么被折叠?



