
selenium
myt2000
这个作者很懒,什么都没留下…
展开
-
关于scrpay爬取网页用selenium报Nignx Forbbiden的解决方案
关于scrpay爬取网页用selenium报Nignx Forbbiden的解决方案 最近爬取某网站,selenium模拟浏览器也爬不下来 网页相应正常,返回200,但是页面上的内容是Nignx Forbbiden,想了好多方案都没有解决 后来发现chromedriver里面有个window.navigator.webdriver,需要禁用掉 我们自然人用浏览器浏览网站 window.navigator.webdriver是undefined 用了selenium,window.navigator.web原创 2021-03-01 10:37:54 · 642 阅读 · 0 评论 -
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH
笔者小白在使用selenium+phantomjs的时候,出现了这样的报错信息: selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH 下面给出解决方法: browser = webdriver.PhantomJS(executable_path=r'C...原创 2019-09-10 11:50:03 · 962 阅读 · 2 评论