Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit on TextBlob translation?

I have been using TextBlob, a package for Python (https://pypi.python.org/pypi/textblob) for translating articles to different language .

After reading their docs, I got to know that TextBlob makes use of Google Translate. Since google translate is not a free service, I wanted to know whether there is any usage limit on translating articles using TextBlob services?

like image 992
kiran Avatar asked Mar 21 '14 10:03

kiran


1 Answers

Google states on their pricing page for the Google Translate API that you need to set up billing in order to be able to utilize the translate API. In other words, there isn't a free usage tier.

Important: Google Translate API v2 requires billing information for all accounts before you can start using the service.

This text is available on https://cloud.google.com/translate/v2/pricing.

So, you shouldn't be able to use the translate API at all unless you have an account set up.

The Google documentation lists https://www.googleapis.com/language/translate/v2 as the API endpoint. Having a look around the source code for TextBlob, I couldn't find that endpoint mentioned anywhere. Instead, TextBlob seems to be using http://translate.google.com/translate_a/t, and that URL isn't mentioned anywhere in Google's API documentation. It seems like TextBlob isn't using the Google Translate API at all. Instead, its forging headers and claiming to be a browser.

This is the module which TextBlob adapted its translation feature from, which states No key, no authentication whatsoever in its description.

So I guess there isn't any usage limit on translating articles using TextBlob, since its not using the API.

like image 151
Nik Barres Avatar answered Oct 05 '22 23:10

Nik Barres