在爬一个网站把 header 参数,params 都写出来了,可还是爬不出来,不知道这网站有什么反爬技术。请大家看看,这是 ajax 网址: http://www.grainmarket.com.cn/centerweb/getData。 这是网站:http://www.grainmarket.com.cn/centerweb/biddingFair/planDetail/2020033100167/G。 麻烦各位大神帮我看看怎么获取他的最终数据。先谢谢大家了
在爬一个网站把 header 参数,params 都写出来了,可还是爬不出来,不知道这网站有什么反爬技术。请大家看看,这是 ajax 网址: http://www.grainmarket.com.cn/centerweb/getData。 这是网站:http://www.grainmarket.com.cn/centerweb/biddingFair/planDetail/2020033100167/G。 麻烦各位大神帮我看看怎么获取他的最终数据。先谢谢大家了
|
mitu9527Apr 3, 2020
1
你提交请求过去,漏了数据“param: {"m":"tradeCenterArea"}”。
|
|
differentApr 3, 2020
3
@zlfera curl -d "param=%7B%22m%22%3A%22tradeCenterArea%22%7D" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://www.g
rainmarket.com.cn/centerweb/getData |
|
differentApr 3, 2020
4

|
|
azoonApr 3, 2020
5
试了一下,这个网站没有用任何反扒技术。
|
|
also24Apr 3, 2020
6
|
|
differentApr 3, 2020
7
curl -d "param=%7B%22m%22%3A%22tradeCenterPlanDetailInfo%22%2C%22requestNo%22%3A%222020033100167%22%2C%22flag%22%3A%22G%22%7D" -X POST http://www.grainmarket.com.cn/centerweb/getData
 哪有这么复杂,Referer,UA 都不用加,,, |
|
8
|
|
9
@also24 那些都不是我要的数据,我要的是参数是{"m":"tradeCenterPlanDetailInfo","requestNo":"2020032400286","flag":"G"}这里的数据
|
|
differentApr 3, 2020
10
@zlfera 看到七楼了嘛?
把七楼的 2020033100167 换成 2020032400286 也就是 param: {"m":"tradeCenterPlanDetailInfo","requestNo":"2020033100167","flag":"G"}换成 param: {"m":"tradeCenterPlanDetailInfo","requestNo":"2020032400286","flag":"G"} |
|
differentApr 3, 2020
11

|
|
also24Apr 3, 2020
12
|
|
13
谢谢大家的帮助,是我参数设置错误了,谢谢大家了
|
|
SupermanhhApr 3, 2020 via iPhone
14
@also24 #12 话说你门这用的都是什么软件啊
|
|
also24Apr 3, 2020
15
|