Failed
GET / HTTP/1.1
Accept-Encoding: identity
Host: www.lebed.com
Connection: close
User-Agent: Python-urllib/3.5
Success
GET / HTTP/1.1
Accept-Encoding: identity
Host: www.lebed.com
Connection: close
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36
我想原因是url不支持robot访问站点。您需要通过发送浏览器标题和请求来伪造浏览器访问
在我的系统上试过这个,效果很好。在
同意Arpit Solanki。显示失败请求与成功请求的输出。在
相关问题 更多 >
编程相关推荐