Python googletrans module not translating

  python

I am using the googletrans module to try and translate between languages as per the below.

import time
from googletrans import Translator
translator = Translator()

translate_channel = translator.translate('Canal La Tele Perú', src='es', dest='en')

However, this doesn’t seem to be attempting any translation at all. It just returns this:

Translated(src=en, dest=en, text=Canal La Tele Perú, pronunciation=Canal La Tele Perú, extra_data="{'translat...")

…is this module currently working? Have I done something wrong? Version installed is as per the below:

pip install googletrans==3.1.0a0

Source: Python Questions

LEAVE A COMMENT