Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirected to captcha when accessing google translate

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?

like image 826
Khoj Avatar asked Apr 09 '15 07:04

Khoj


2 Answers

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.

like image 182
Parsa Avatar answered Oct 06 '22 04:10

Parsa


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.

like image 42
Bobble Avatar answered Oct 06 '22 03:10

Bobble