Oct-09-2017, 05:54 PM
(Oct-09-2017, 03:28 PM)snippsat Wrote:>>> from googletrans import Translator >>> translator = Translator() >>> ab = translator.translate('Yes', dest='nl') >>> ab <googletrans.models.Translated object at 0x046BD4F0> >>> ab.text 'Ja' >>> ab.dest 'nl' >>> ab.origin 'Yes' >>> # Method you can use >>> [i for i in dir(ab) if not '__' in i] ['dest', 'origin', 'pronunciation', 'src', 'text']If using a REPL like ptpython, Ipython then these method will automatic show up when write ab.
.
Thanks for you code... this problem is fixed !...
Jamie.