Giter VIP home page Giter VIP logo

csdn_blog2pdf's Introduction

CSDN_Blog2PDF

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

Update :

Update 20190610

0610 Updates:

  • Fix : Crash when applying to the latest CSDN website 更新对新版本CSDN网站的适配
  • Fix : Crash when saving some hidden blogs 更新对隐藏博文的忽略处理
  • Fix : Malfuntion when crawling through multiple pages 修复多页博客的连续爬取故障

Old Updates:

  • New : Update requirements.txt 新增安装需求文档
  • New : Better look in HTML and PDF files 升级PDF和HTML显示效果
  • Fix : Multiple crash happened when blog is not properly written 自适应博文不规范格式
  • Fix : File saving error due to prohibited characters in file name 修复不规范博文名造成的崩溃

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.

csdn_blog2pdf's People

Contributors

leyuwei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.