Best way of using google translation by Python

后端 未结 6 1206
渐次进展
渐次进展 2021-02-05 03:32

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 transl

6条回答
  •  别跟我提以往
    2021-02-05 04:13

    Since the origin of this post, connecting to the Google Translate API has become a whole lot easier. That being said, I would still recommend connecting directly to the Google Translate API, but now through it's RapidAPI page here.

    You can find out how to obtain an API key here. Just input the API key into the API's function page on Rapid API and click TEST Function. For example, that’s what a basic english to german translation will look like:

    Just note that de is the language code for German. RapidAPI will generate a code snippet for you so you can just copy and paste the API call directly into your project.

提交回复
热议问题