![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 523 阅读 · 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 · 933 阅读 · 2 评论