V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Interstellar
V2EX  ›  问与答

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

  •  
  •   Interstellar · 2015-12-21 17:32:42 +08:00 · 1861 次点击
    这是一个创建于 3264 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    自己抓包看不太懂

    有人能帮帮忙吗

    2 条回复    2015-12-21 17:58:42 +08:00
    xia0chun
        1
    xia0chun  
       2015-12-21 17:46:31 +08:00   ❤️ 1
    用 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
        2
    greycell  
       2015-12-21 17:58:42 +08:00   ❤️ 1
    type: 'GET',
    contentType: 'application/json',
    url: 'HandlerThree.ashx',
    data: { "name": linename, "lineid": lineid, "stopid": stopid, "direction": status123 },

    实时车次 api
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4996 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 09:50 · PVG 17:50 · LAX 01:50 · JFK 04:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.