Installation Note: Due to recent changes to Google's API you need to install this version of Python Googletrans pip install googletrans==3.1.0a0
Simple Example code: #!/usr/bin/env python
from googletrans import Translator
translator = Translator()
translated = translator.translate('Бороди́нское сраже́ние')
print(translated.text)For more information:Python Google translator tutorial - translating text in Python with googletrans module (zetcode.com) |
Python >
