atboy 发表于 2017-5-29 20:34:38

iwencai的采集地址含有动态token,有办法吗?

目标页面:
http://www.iwencai.com/stockpick/search?preParams=&ts=1&f=1&qs=lm_zxwj_query&querytype=&tid=stockpick&queryarea=all&w=%E8%82%A1%E4%BB%B7%E4%BD%8E%E4%BD%8D%E4%B8%94%E4%B8%BB%E5%8A%9B%E5%BB%BA%E4%BB%93


目标页面源码中有
"token":"af9ba54ab8c91bdc1e78d1e8cdbeeb60",

用Fiddler抓包:
GET /stockpick/cache?token=5b67a76e637a5fbc64a71d83ac753e00&p=1&perpage=50&changeperpage=1&showType=[%22%22,%22%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22,%22onTable%22] HTTP/1.1
Host: www.iwencai.com


添加规则的时候一切正常,但执行采集的时候,会提示无效 {"code":130,"error":"token\u5df2\u5931\u6548","success":false}


请问这种如何采集?谢谢

leweizxl 发表于 2017-5-31 08:38:45

抓包http请求参数设置到规则里

longouxiu 发表于 2017-5-31 12:43:07

你这个 要用post处理分页 就可以,
页: [1]
查看完整版本: iwencai的采集地址含有动态token,有办法吗?