Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
/ csdn-blog-export Public archive

export csdn blog articles to markdown or html. 导出CSDN博客文章为markdown或html

Notifications You must be signed in to change notification settings

gaocegege/csdn-blog-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

CSDN 博客导出工具

一个用python2.7写的博客导出工具,导出为markdown或者html。

使用

依赖

Python 2.7
	beautifulsoup4

此外,在导出markdown格式的时候使用了开源项目html2text

使用方法

main.py -u <username> [-f <format>] [-p <page>] [-o <outputDirectory>]
	<format>: html | markdown,缺省为markdown
	<page>为导出特定页面的文章,缺省导出所有文章
	<outputDirectory>暂不可用

Example

如果想导出http://blog.csdn.net/cecesjtu的文章,格式为markdown,命令为:

./main.py -u cecesjtu -f markdown
or
./main.py -u cecesjtu

格式为html,命令为:

./main.py -u cecesjtu -f html

To Do

  1. 导出到指定目录

Licence

GPLv3

About

export csdn blog articles to markdown or html. 导出CSDN博客文章为markdown或html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages