
selenium
迷糊的『迷』
这个作者很懒,什么都没留下…
展开
-
反爬虫之利用chrome的debug模式破解不允许selenium模拟的网站
首先说明下这样做的好处:就是你不用验证登陆状态,可以先登陆,再爬虫1.先打开windows cmd 进入chrome安装目录,一般在C:\Program Files (x86)\Google\Chrome\Application下,然后运行chrome.exe --remote-debugging-port=9222 --user-data-dir=“C:\selenum\AutomationProfile”就打开了一个chrome浏览器,后面就是操作这个浏览器了,你可以先登陆,然后cookie,to转载 2021-10-20 22:29:50 · 1161 阅读 · 0 评论 -
selenium.common.exceptions.ElementNotInteractableException: Message: Element <span> could not be....
selenium.common.exceptions.ElementNotInteractableException: Message: Element could not be scrolled into view错误解决代码:报错原因是我索引错误,spans[1]元素可能不支持click事件改变索引便可以了进入百度页面在百度页面选择对应的标签点击进入标签页...原创 2021-10-10 18:03:20 · 509 阅读 · 0 评论