I'm trying to retrieving data from Google Translate for my website. I use this sample for retrieving data from Google Translate:
http://translate.google.com/translate_a/t?client=t&text=find&hl=en&sl=en&tl=fr
but now it's redirecting me to:
http://ipv4.google.com/sorry
This has been working fine for me for the last two years, but the issue appeared last night. What is causing this, and what can I do about it?
Judging by the parameters in your url here is another link that should work: https://translate.google.co.uk/#en/fr/find
The setup seems to be https://translate.google.co.uk/#{original language}/{translate to language}/{text to translate}
However I have to point out that scraping google translate is against the TOS, they do have an api here: https://cloud.google.com/translate/docs
Unfortunately this costs roughly $2 per one hundred thousand characters translated.
A free alternative that may be more appropriate for you is the Google Website Translator. Follow the instructions to get a code snippet to add to your website to embed a translator tool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With