I'm following this guide of requests-html library and found this error in my laptop.
In JavaScript Support I try to code like this page:
from requests_html import HTMLSession
session = HTMLSession()
r = session.get('http://python-requests.org/')
r.html.render()
print(r.text)
When ran this code I received this content in Sublimetext:
[W:pyppeteer.chromium_downloader] start chromium download. Download may take a few minutes. OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]
Can anyone fix this problem for me, please?
I solve problem with :
pip install pyppdf
then in the code first use:
import pyppdf.patch_pyppeteer
Source : https://github.com/miyakogi/pyppeteer/issues/258#issuecomment-563075764
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.