Skip to content Skip to sidebar Skip to footer

Why Python Googletrans Suddenly Not Working?

Here is the code: # coding: utf-8 from googletrans import Translator translator = Translator() print translator.translate('here', dest='zh-CN') everything goes well before today.

Solution 1:

If you go deeper to library you see, that request to google translate site returns something like 503 error or other. For me it was 503 error and text:

This page appears when Google automatically detects requests coming from 
your computer network which appear to be in violation of the Terms of Service.
The block will expire shortly after those requests stop.

This traffic may have been sent by malicious software, a browser plug-in, 
or ascript that sends automated requests. If you share your network connection,
ask your administrator for help — a different computer using the same IP
address may be responsible. Learn more

Sometimes you may see this page if you are using advanced terms that robots
are known to use, or sending requests very quickly.

This means, and README of project says it:

If you get HTTP 5xx error or errors like #6, it’s probably because Google has banned your client IP address.

Try to use proxy.

Post a Comment for "Why Python Googletrans Suddenly Not Working?"