【发布时间】:2019-09-11 06:27:59
【问题描述】:
Here 提供了一种将网页下载为 pdf 的方法,该方法有效。
但是,我感兴趣的网站本身也显示一个pdf,所以这个方法不起作用。例如,this 页面。这些网址有什么特定的吗?
当我使用上面分享的帖子时,我收到以下错误:
OSError: wkhtmltopdf reported an error:
Loading pages (1/6)
Error: Failed loading page http://curia.europa.eu/juris/showPdf.jsf;jsessionid=CAE85693A88870E357F61ED4344FD7E9?text=&docid=62809&pageIndex=0&doclang=EN&mode=lst&dir=&occ=first&part=1&cid=2878455 (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1, due to unknown error.
【问题讨论】:
标签: python python-3.x pdf web