python_scripts
python_scripts copied to clipboard
一些python相关的演示代码
Bumps [certifi](https://github.com/certifi/python-certifi) from 2019.11.28 to 2022.12.7. Commits 9e9e840 2022.12.07 b81bdb2 2022.09.24 939a28f 2022.09.14 aca828a 2022.06.15.2 de0eae1 Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ... b8eb5e9 2022.06.15.1...
Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.2.1 to 9.3.0. Release notes Sourced from pillow's releases. 9.3.0 https://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html Changes Initialize libtiff buffer when saving #6699 [@radarhere] Limit SAMPLESPERPIXEL to avoid runtime DOS #6700 [@wiredfool]...
Bumps [numpy](https://github.com/numpy/numpy) from 1.13.1 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...
``` File "crawler.py", line 163, in crawler.run() File "crawler.py", line 97, in run pdfkit.from_file(htmls, self.name + ".pdf", options=options) File "C:\Anaconda3\envs\py3-dj\lib\site-packages\pdfkit\api.py", line 49, in from_file return r.to_pdf(output_path) File "C:\Anaconda3\envs\py3-dj\lib\site-packages\pdfkit\pdfkit.py", line 156,...
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.25.7 to 1.25.8. Release notes Sourced from urllib3's releases. 1.25.8 Release: 1.25.8 Changelog Sourced from urllib3's changelog. 1.25.8 (2020-01-20) Drop support for EOL Python 3.4 (Pull #1774)...
 换了wkhtmltopdf v0.12.4,还是同样的问题。。
`Traceback (most recent call last): File "crawler.py", line 163, in crawler.run() File "crawler.py", line 90, in run for index, url in enumerate(self.parse_menu(self.request(self.start_url))): File "crawler.py", line 116, in parse_menu menu_tag =...
python3 crawler.py Traceback (most recent call last): File "crawler.py", line 163, in crawler.run() File "crawler.py", line 90, in run for index, url in enumerate(self.parse_menu(self.request(self.start_url))): File "crawler.py", line 116, in parse_menu...
I highly recommend you to use 'weasyprint' as an alternative of 'pypdf' to avoid font size issue. And as far as I know, ajax pics cannot be extracted for all...
 请求解决