Convert CSDN Blog to PDF while keeping all codes, images and formulas as they were. 转换CSDN博客到PDF格式,保持代码、图片和公式完全不变,方便打印留档.
0610 Updates:
Old Updates:
based on build.20190610
Python3 or Newer.
20181029更新:已添加requirements.txt
,可以在文件夹中运行pip3 install -r requirements.txt
进行环境一键配置!
要求安装shutil
、bs4
、pdfkit
和wkhtmltopdf
。
Requiring installation of shutil
,bs4
,pdfkit
andwkhtmltopdf
.
前三个可以直接用pip命令安装,wkhtmltopdf
不是Python的库的安装链接如下:
wkhtmltopdf
can be downloaded from the following web page:
https://wkhtmltopdf.org/
环境配置完成后,请直接用Python运行main.py
或直接运行批处理run.bat
,按照图形界面中的指示进行操作。下载后的博客都在csdn_blog
文件夹下。
After installing those dependencies, you may run main.py
or run.bat
. Please follow the instructions in the pop-up window. The downloaded PDF & HTML files are all saved in the csdn_blog
directory.