/trans007

Google translate API

Primary LanguagePythonMIT LicenseMIT

Translate API

install

pip install trans007

use

from trans007 import GoogleTranslate
trans = GoogleTranslate()
# trans = GoogleTranslate(proxies={'https': '127.0.0.1:7890'})
print(trans.translate("Hello World", 'en', 'zh-CN'))