I am currently developing a tool to translate words on the fly with googles translate website. To better understand googles querys I have to analyse their GET parameters.

This is an example created with language detection on, result language de and text 'good' at www.translate.google.com

1. client   t
2. hl   de // Home language
3. ie   UTF-8 // Encoding
4. it   sel.124835
5. multires 1
6. oe   UTF-8
7. otf  1
8. otf  1
9. prev conf
10. psl en // 'Language from' before (when you change it)
11. ptl de // 'Language to' before (when you change it)
12. sc  1
13. sl  auto // Language to translate from, source language
14. ssel    3
15. ssel    3
16. text    good // Text to translate
17. tl  de // Language to translate to, target language
18. tsel    0
19. tsel    0
20. uptl    de

Question: what do the parameters I have not commented mean?

有帮助吗?

解决方案

If you're trying to reverse-engineer something like someone's GET parameters, then that's your goal, so do it! But a better option would be to use their supported and documented Translate API.

其他提示

Do not scrape their webpage to hack together an API, they'll eventually shut you off, they're not big fans of that type of thing.

Here is a link to their API documentation for Google Translate.

https://developers.google.com/translate/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top