我如何使用硒接受这些饼干?
我正在尝试刮擦此网站 https://www.parkers.co.uk 但是对于某些原因我似乎无法超越cookie弹出,我尝试了此代码
cookies = driver.find_element_by_xpath('//*[@ID =“ notfect”]/div [5]/button [2]') cookies.click(),
但似乎不起作用,我该怎么办?
I'm trying to scrape this website https://www.parkers.co.uk but for some reason I cannot seem to get past the cookies pop up, I've tried with this code
cookies = driver.find_element_by_xpath('//*[@id="notice"]/div[5]/button[2]')
cookies.click()
but it doesn't seem to be working, what can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下操作:
Try this: