Skip to content

This is a Python-based script to crawl and download csdn articles and convert them to markdown files. It can download and convert a single article or column, or it can convert all downloaded columns into a single article. [csdn to md] [csdn to markdown] [csdn2md] [csdn2markdown]

Notifications You must be signed in to change notification settings

TianLai-PAlace/csdn2md

Repository files navigation

csdn2markdown

also known as [csdn to md] [csdn to markdown] [csdn 2 markdown]

language:CN/ EN

CN

介绍

iShot_2023-03-26_21.00.23

该仓库提供了一个shell脚本文件和一个python tkinter gui,可以将CSDN的博客导出为Typora格式的markdown文件。它支持单篇或整个专栏所有文章的导出操作,并且可以将本次所有导出内容汇总在一起变成一篇文章。

iShot_2023-03-26_21.02.44

如何配置和使用

1, 安装python需求文档

该文件夹内运行终端,或者cd 到该文件夹下

pip install -r requirements.txt

2,配置aria2,pandoc,git

一切都在support_files文件夹下, 查看该文件夹下的README来获取更多信息

3,使用

如果使用shell,

双击run.sh即可使用,建议使用管理员模式。

也可以在该文件目录的cmd窗口输入 sh run.sh 使用。

如果使用gui,

双击run.py即可使用,建议使用管理员模式。

也可以在该文件目录的cmd窗口输入 python run.py 使用。

注意

有需要注意的地方:

  • typora需要开启内联公式。
  • 该转换仅针对typora格式,其他markdown编辑器可能会加载错误。

EN

About

This is a Python-based script to crawl and download csdn articles and convert them to markdown files. It can download and convert a single article or column, or it can convert all downloaded columns into a single article. [csdn to md] [csdn to markdown] [csdn2md] [csdn2markdown]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published