Coder Social home page Coder Social logo

csdn-export's Introduction

csdn-export

导出CSDN博客并创建对应的Github Issue博客。
通过本工具你既可以一次性导出所有博客,也可以指定某一篇要导出的博客。

使用

python csdn-export.py --help查看详细。

前提

$ pip install pipenv
$ pipenv install

例子

$ echo CSDN_COOKIE > cookie.txt 
$ pipenv run python csdn-export.py -u GITHUB_USERNAME -r GITHUB_REPO -t GITHUB_ACCESS_TOKEN -p CSDN_BLOG_MAX_PAGE -c CSDN_USERNAME -b BLOG_ID

Variables

GITHUB_ACCESS_TOKEN: 在后面的网址中生成:https://github.com/settings/tokens
GITHUB_USERNAME: 你的Github用户名
GITHUB_REPO: 你的Github仓库名
CSDN_BLOG_MAX_PAGE: 你的CSDN博客最大页码. 存在这个变量的原因是目前程序无法获取最大页码
CSDN_COOKIE: 你的CSDN cookie,你可以在控制台中复制随便一个csdn请求的cookie。
CSDN_USERNAME: 你的CSDN用户名
BLOG_ID: 你的CSDN博客ID

警告

不要对他人的仓库使用本工具!!!
不要对他人的仓库使用本工具!!!
不要对他人的仓库使用本工具!!!

csdn-export's People

Contributors

bpazy avatar dependabot[bot] avatar

Watchers

 avatar  avatar  avatar

Forkers

xkkyyds

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.