google translate python

99

google translate python -

from deep_translator import GoogleTranslator
print(GoogleTranslator('auto','en').translate('Hola!'))

python google translate -

#!/usr/bin/env python

from googletrans import Translator

translator = Translator()

translated = translator.translate('svízelná situace', src='cs', dest='hu')

print(translated.text)

Comments

Submit
0 Comments