GithubHelp home page GithubHelp logo

csdnblogbackup's Introduction

Python实现CSDN博客的完美备份

出发点

之所以造这个轮子无非是现有的轮子不好使,CSDN官网是推出的博客备份在系统中读不到博客数据,打开后还会闪退,其他人写的工具,要么是收费,要么只是对网页的下载,不能完整的下载网页中嵌入的图片等各种资源。

于是自己花几个小时写了这个工具,其特点是可以做到CSDN博客的完美备份,下载整个网页,包括网页中的图片,css,js等,可以做到博客的完整备份。

功能

1 CSDN博客的完美备份;

2 下载整个博客网页,包括图片,css,js等各种资源;

3 生成Index.html方便对本地博客的浏览;

4 完全免费,开源。

效果截图

利用整个脚本已经把自己的博客做了完整备份,一些截图如下:

这是下载完成后文件夹里的部分内容,所有网页对应的图片等资源都放到了同名文件夹中。

这是Inde下.html索引文件:

这是部分博客内容的展示,其对图片和公式都能非常好的支持,即便公式是用mathjax写的(因为下载了网页需要的所有资源,包括js)。

运行环境

1 python;

2 python的chilkat库。

使用说明

使用时直接双击CSDNBlogBackup.py,输入你要备份的CSDN的用户名,等待下载完成即可。

可以自己各种DIY做各种其他博客的备份。Enjoy It!

csdnblogbackup's People

Contributors

lanbing510 avatar

Watchers

James Cloos 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.