微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

requests_html render() 抛出 OSError: [WinError 14001]

如何解决requests_html render() 抛出 OSError: [WinError 14001]

您好,我正在尝试使用 python 模块 requests-html 进行网页抓取,以处理页面 https://www.monster.com/jobs/search?q=Software+Engineer&where= 上的动态内容。我的代码是:

from requests_html import HTMLSession
url = 'https://www.monster.com/jobs/search?q=Software+Engineer&where='
session = HTMLSession()
response = session.get(url)
response.html.render() 

但是当我运行 response.html.render() 我得到这个错误

OSError: [WinError 14001] The application has Failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail

我第一次运行 render() 时得到了

[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
[W:pyppeteer.chromium_downloader]
chromium download done.
[W:pyppeteer.chromium_downloader] chromium extracted to: C:\Users\user\AppData\Local\pyppeteer\pyppeteer\local-chromium\588429

然而文件路径不存在但pyppeteer实际上是一个安装包(pyppeteer==0.2.5)。有没有人知道发生了什么?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。