wensonsmith
V2EX  ›  PHP

11 平台积分怎样抓取?

  •  1
     
  •   wensonsmith · Mar 31, 2015 · 4095 views
    This topic created in 4243 days ago, the information mentioned may be changed or developed.

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

    http://dotazj.uuu9.com/

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

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

    或是还有其他方法?

    3 replies  •  2015-04-02 00:07:58 +08:00
    wensonsmith
    wensonsmith
    OP
    Mar 31, 2015
    1
    大神,给个思路啊!!
    hisokc
    hisokc
    Mar 31, 2015❤️1
    2
    思路:

    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
    wensonsmith
    OP
    Apr 2, 2015
    3
    @hisokc 多谢大神!!!

    已经按此思路搞定~~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4653 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:31 · PVG 14:31 · LAX 22:31 · JFK 01:31
    ♥ Do have faith in what you're doing.