There are many situations that can lead to such a result. The more common one is, 请求头的内容没有包含服务器需要信息, 或者是cookies里面的内容, 没有包含服务器需要的信息, 所以被服务器判断为爬虫, 所以无法取得正常的结果. 你可以试下将浏览器的请求头和cookies分别拷贝到你的程序中再去请求, 如果还是不行, 只能用类似fiddlerThis kind of tool will do a detailed analysis
Some requests require a Referer to request data, or some require cookie verification. You need to check whether previous successful cases are restricted by these conditions!
There are many situations that can lead to such a result. The more common one is,
请求头
的内容没有包含服务器需要信息, 或者是cookies
里面的内容, 没有包含服务器需要的信息, 所以被服务器判断为爬虫, 所以无法取得正常的结果. 你可以试下将浏览器的请求头
和cookies
分别拷贝到你的程序中再去请求, 如果还是不行, 只能用类似fiddler
This kind of tool will do a detailed analysisSome requests require a Referer to request data, or some require cookie verification. You need to check whether previous successful cases are restricted by these conditions!