how to use google translate api in python

Solutions on MaxInterview for how to use google translate api in python by the best coders in the world

showing results for - "how to use google translate api in python"
Agustín
01 Feb 2017
1# First install translate with pip in cmd
2pip install translate
3
4# Code
5from translate import Translator
6translator= Translator(from_lang="german",to_lang="spanish")
7translation = translator.translate("Guten Morgen")
8print(translation)
Isabella
20 Nov 2018
1You cand find 2 complete Python Code for translate at this links:
2
3https://neculaifantanaru.com/en/python-code-text-google-translate-website-translation-beautifulsoup-library.html
4
5or here:
6
7https://neculaifantanaru.com/en/example-google-translate-api-key-python-code-beautifulsoup.html