![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小小爬虫
浮光FF
这个作者很懒,什么都没留下…
展开
-
phantomjs 使用代理
前几天爬某一网站,用到phantomjs,要加代理。千幸万苦找到这个方法,赶快记下。方法一: python目录下找到Lib\site-packages\selenium\webdriver\remote\remote_connection.py, RemoteConnection里找到self._commands,添加:Command.EXECUTE_PHANTOM_SCRIPT:('POST原创 2017-09-19 15:08:16 · 7340 阅读 · 2 评论 -
伪造 X-Forwarded-For
简单粗暴上代码!import randomimport requestsip_address = ['125.92.32.81', '125.92.32.82', '125.92.32.83']headers = {"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Acc原创 2017-09-19 16:37:20 · 1495 阅读 · 0 评论