快速翻译一些爬取的英文文章或段落
pip install googletrans
from googletrans import Translator
#实例化
translator = Translator(service_urls=['translate.google.cn'])
content = 'Today is a gooday'
transed_content = translator.translate(content, dest='zh-CN').text
print(transed_content)
from googletrans import Translator
translator = Translator()
print(translator.translate('星期日').text)
https://www.jianshu.com/p/0f2d3619c377
https://www.jianshu.com/p/2f9a2b4c3aa3