leyuwei / CSDN_Blog2PDF

Convert CSDN Blog to PDF while keeping all codes, images and formulas as they were. (转换CSDN博客到PDF格式,保持代码、图片和公式完全不变,方便打印留档.)
Apache License 2.0
7 stars 1 forks source link

CSDN_Blog2PDF

Convert CSDN Blog to PDF while keeping all codes, images and formulas as they were. 转换CSDN博客到PDF格式,保持代码、图片和公式完全不变,方便打印留档.

Update :

Update 20190610

0610 Updates:

Old Updates:


Demo

based on build.20190610 saved files demo of a saved blog

Compatibility

Python3 or Newer.

Requirements

20181029更新:已添加requirements.txt,可以在文件夹中运行pip3 install -r requirements.txt进行环境一键配置!
要求安装shutilbs4pdfkitwkhtmltopdf
Requiring installation of shutil,bs4,pdfkitandwkhtmltopdf.
前三个可以直接用pip命令安装,wkhtmltopdf不是Python的库的安装链接如下:
wkhtmltopdf can be downloaded from the following web page:
https://wkhtmltopdf.org/

Instructions

环境配置完成后,请直接用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.