Python爬虫斗鱼直播数据,xpath明明定位正确,但是执行代码时却报错

selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document

同理 豆瓣网登录时也失败

 目前初学Python,对于xpath定位元素还不是很精准,后期更加熟悉了,再来解决此问题

发布了380 篇原创文章 · 获赞 113 · 访问量 96万+

猜你喜欢

转载自blog.csdn.net/resilient/article/details/100012909