python爬取谷歌翻译 爬虫实践

云白色 46 0 PDF 2020-12-23 04:12:32

python爬取谷歌翻译 爬虫实践 首先先安装第三方库: pip3 install PyExecJS -i https://pypi.tuna.tsinghua.edu.cn/simple macos系统运行代码报错的话在终端运行如下代码: /Applications/Python\ 3.7/Install\ Certificates.command ; exit; 英译中代码: import urllib.request import execjs # 谷歌翻译 class Py4Js(): def __init__(self): self.ctx = exec

用户评论
请输入评论内容
评分:
暂无评论