WeasyPrint Https证书验证失败

2024-05-15 00:12:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在windows上使用weasyprint

Python脚本如下:

from weasyprint import HTML
HTML('https://localhost:82/page/').write_pdf('weasyprint.pdf')

httpsis SSL是本地iis express enter image description here

错误如下:

^{pr2}$

因为我们正在为网站使用iis express证书。 有没有办法跳过这个错误?在


Tags: fromhttpsimport脚本localhostpdfwindowshtml

热门问题