Skip to content
Advertisement

Best way of using google translation by Python [closed]

I am trying to translate large number of text files from English to other several languages. And we use Python in our project, we try to use Google translation service to translate them first then we will correct the mistakes manually.

I have come up with two ways to translate:

  1. Use Python Google translation API. Here: goslate 1.1.2: Python Package

  2. Try to program with the google translation page, that is, feed in the text that we want to translate, simulate the HTTP request and process the response. Google Translation

Is anyone have a better offer?

Advertisement

Answer

Google does in fact have an official translation API with a REST interface. You can check it out here. Note that it is a paid API with no free quota.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement