Code Monkey home page Code Monkey logo

csdn2md's Introduction

csdn2md

Export csdn blogs to markdown files.

一个用于将 csdn 博客导出为 markdown 文件的程序。

为了将自己的 csdn 博客文件导出放到我的 hexo 站点上, 我写了这个程序来导出文件,并加上 hexo 所需要的头部说明(title、date 等等)。

我收集了很多 UA 放在 uas.txt 文件中,当然这个程序用不到那么多。

你需要先在网页上登录自己的 csdn 博客,然后把 cookies 复制到 cookies.txt 文件里。

需要注意的是如果你当初写博客的时候不是用 markdown 编辑器写的,那么这个程序是不支持的。

Good luck,CSDN sucks。

csdn2md's People

Contributors

secsilm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chenjiahui

csdn2md's Issues

使用说明好像不够清晰啊

问题1. 没有安装对应模块

$ python csdn2md.py
Traceback (most recent call last):
  File "csdn2md.py", line 20, in <module>
    import fire
ModuleNotFoundError: No module named 'fire'

解决方法:

$ pip install fire

问题2. 该运行什么命令好像也没有说清楚,还有就是有代码里面有说明

$ python csdn2md.py
ERROR: The function received no value for the required argument: username
Usage: csdn2md.py USERNAME TOTAL_PAGES COOKIE_FILE <flags>
  optional flags:        --start | --stop | --hexo | --md_dir

For detailed information on this command, run:
  csdn2md.py --help

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.