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

如何程序化翻译一个页面

  •  
  •   helloworld12 · Oct 19, 2017 · 1624 views
    This topic created in 3119 days ago, the information mentioned may be changed or developed.

    或者说,怎样抓取 https://translate.google.com.hk/translate?hl=en&sl=zh-CN&tl=en&u=http%3A%2F%2Fqq.com&sandbox=1 里面的内容

    主要是它里面的内容是 ajax 翻译的,不是直接 response 的

    2 replies    2017-10-20 19:12:00 +08:00
    RoyLaw
        1
    RoyLaw  
       Oct 20, 2017
    Google 翻译应该有 API 可以调用,不用自己每次去页面上爬。
    helloworld12
        2
    helloworld12  
    OP
       Oct 20, 2017
    @RoyLaw 那个要钱的 :)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   859 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:07 · PVG 03:07 · LAX 12:07 · JFK 15:07
    ♥ Do have faith in what you're doing.