关于抓取公众号接口的问题

2015-12-21 17:32:42 +08:00
 Interstellar

有一个公众号 http://xxbs.sh.gov.cn:8080/weixinpage/

我的 app 想用这个页面用的接口来请求数据

自己抓包看不太懂

有人能帮帮忙吗

1855 次点击
所在节点    问与答
2 条回复
xia0chun
2015-12-21 17:46:31 +08:00
用 Fiddler 抓到的,查询共分为两次:
第一次:
Request URL: http://xxbs.sh.gov.cn:8080/weixinpage/HandlerOne.ashx?name=933%E8%B7%AF
Request Method: GET
Status Code: 200
Response:{"end_earlytime":"\n\t\t05:30\n\t","end_latetime":"\n\t\t22:30\n\t","end_stop":"\n\t\t 运光新村\n\t","line_id":"\n\t\t093300\n\t","line_name":"\n\t\t933\n\t","start_earlytime":"\n\t\t05:25\n\t","start_latetime":"\n\t\t22:25\n\t","start_stop":"\n\t\t 龙耀路云锦路\n\t"}

第二次:
Request URL: http://xxbs.sh.gov.cn:8080/weixinpage/HandlerTwo.ashx?name=933%E8%B7%AF&lineid=%0A%09%09093300%0A%09
Request Method: GET
Status Code: 200
Response:{"lineResults0":{"direction":"true","stops":[{"zdmc":"龙耀路云锦路","id":"1"},{"zdmc":"云锦路丰谷路","id":"2"},{"zdmc":"丰谷路云锦路","id":"3"},{"zdmc":"龙华","id":"4"},{"zdmc":"龙华路华容路","id":"5"},{"zdmc":"宛平南路龙华中路","id":"6"},{"zdmc":"中山南二路东安路","id":"7"},{"zdmc":"中山南二路船厂路","id":"8"},{"zdmc":"中山南二路大木桥路","id":"9"},{"zdmc":"中山南一路打浦路","id":"10"},{"zdmc":"鲁班路瞿溪路","id":"11"},{"zdmc":"鲁班路斜土路","id":"12"},{"zdmc":"重庆南路建国中路","id":"13"},{"zdmc":"重庆南路复兴中路","id":"14"},{"zdmc":"成都北路延安东路","id":"15"},{"zdmc":"成都北路南京西路","id":"16"},{"zdmc":"成都北路新闸路","id":"17"},{"zdmc":"共和新路中华新路","id":"18"},{"zdmc":"中山北路西宝兴路","id":"19"},{"zdmc":"中山北一路花园路","id":"20"},{"zdmc":"中山北一路广中路","id":"21"},{"zdmc":"玉田路中山北一路","id":"22"},{"zdmc":"玉田路曲阳路","id":"23"},{"zdmc":"中山北二路伊敏河路","id":"24"},{"zdmc":"运光新村","id":"25"}]},"lineResults1":{"direction":"false","stops":[{"zdmc":"运光新村","id":"1"},{"zdmc":"运光路松花江路","id":"2"},{"zdmc":"伊敏河路巴林路","id":"3"},{"zdmc":"东体育会路中山北二路","id":"4"},{"zdmc":"赤峰路中山北一路","id":"5"},{"zdmc":"中山北一路广中路","id":"6"},{"zdmc":"中山北一路花园路","id":"7"},{"zdmc":"中山北路西宝兴路","id":"8"},{"zdmc":"中山北路共和新路","id":"9"},{"zdmc":"共和新路中兴路","id":"10"},{"zdmc":"成都北路新闸路","id":"11"},{"zdmc":"成都北路北京西路","id":"12"},{"zdmc":"成都北路威海路","id":"13"},{"zdmc":"重庆南路淮海中路","id":"14"},{"zdmc":"重庆南路复兴中路","id":"15"},{"zdmc":"重庆南路建国中路","id":"16"},{"zdmc":"鲁班路斜土路","id":"17"},{"zdmc":"鲁班路瞿溪路","id":"18"},{"zdmc":"中山南一路打浦路","id":"19"},{"zdmc":"中山南二路大木桥路","id":"20"},{"zdmc":"中山南二路东安路","id":"21"},{"zdmc":"龙华路宛平南路","id":"22"},{"zdmc":"龙华路华容路","id":"23"},{"zdmc":"龙华","id":"24"},{"zdmc":"丰谷路云锦路","id":"25"},{"zdmc":"云锦路丰谷路","id":"26"},{"zdmc":"龙耀路云锦路","id":"27"}]}}
greycell
2015-12-21 17:58:42 +08:00
type: 'GET',
contentType: 'application/json',
url: 'HandlerThree.ashx',
data: { "name": linename, "lineid": lineid, "stopid": stopid, "direction": status123 },

实时车次 api

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/245140

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX