V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
thomass
V2EX  ›  问与答

爬有道词典遇到的一点点疑惑

  •  
  •   thomass · May 31, 2019 · 1588 views
    This topic created in 2523 days ago, the information mentioned may be changed or developed.

    在分析 url 时看到的是这个 Request URL: http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule

    但是用这个请求的话只会得到{"errorCode":50} 最后发现把 url 改成 http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule 就可以了, 不清楚这里面有啥秘密

    1 replies    2019-06-01 17:03:45 +08:00
    loginbygoogle
        1
    loginbygoogle  
       Jun 1, 2019
    关键是如何计算 sign,可以到源码中分析,并不难
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:29 · PVG 16:29 · LAX 01:29 · JFK 04:29
    ♥ Do have faith in what you're doing.