python爬取谷歌翻译 爬虫实践

上传:云白色 浏览: 45 推荐: 0 文件:PDF 大小:39KB 上传时间:2020-12-23 04:08:33 版权申诉
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
上传资源
用户评论