thomass
V2EX  ›  问与答

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

  •  
  •   thomass · May 31, 2019 · 2015 views
    This topic created in 2730 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
    loginbygoogle
    Jun 1, 2019
    1
    关键是如何计算 sign,可以到源码中分析,并不难
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1916 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 12:13 · PVG 20:13 · LAX 04:13 · JFK 07:13
    ♥ Do have faith in what you're doing.