V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wensonsmith
V2EX  ›  PHP

11 平台积分怎样抓取?

  •  1
     
  •   wensonsmith · 2015-03-31 13:19:00 +08:00 · 2840 次点击
    这是一个创建于 3311 天前的主题,其中的信息可能已经有所发展或是发生改变。

    自己要做一个查询器,想知道

    http://dotazj.uuu9.com/

    uu9 这种测试器,是怎样根据用户的昵称抓取到11平台信息的

    11有战绩中心,但是需要登录才能访问,如果是抓取,怎样抓取呢?

    或是还有其他方法?

    3 条回复    2015-04-02 00:07:58 +08:00
    wensonsmith
        1
    wensonsmith  
    OP
       2015-03-31 14:42:23 +08:00
    大神,给个思路啊!!
    hisokc
        2
    hisokc  
       2015-03-31 16:45:50 +08:00   ❤️ 1
    思路:

    uu9先通过模拟登录获取11社区的登录信息

    然后通过再通过用户的昵称去查询11平台是否有该昵称的用户

    如果有的话就返回数据

    查uid的链接(前提是模拟登录11平台)
    post提交
    http://i.5211game.com/request/?r=1427791249052

    参数
    method:getuidbypname
    name:用户名

    查战绩链接(返回json)
    post提交
    http://i.5211game.com/request/rating/?r=1427791400654


    参数
    method:ladderheros
    u:421304770
    t:10001

    总之就是模拟登录后获取cookie,随后去找请求数据的url和参数
    wensonsmith
        3
    wensonsmith  
    OP
       2015-04-02 00:07:58 +08:00
    @hisokc 多谢大神!!!

    已经按此思路搞定~~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3837 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:30 · PVG 18:30 · LAX 03:30 · JFK 06:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.