Giter VIP home page Giter VIP logo

kindle-notes's Introduction

项目说明

这是一个使用 Python 语言编写的小工具,用于管理和展示读书的摘录。

支持如下的读书摘录:

  • Kindle 的 My Clippings.txt
  • Moon+ Reader Pro(静读天下)
  • 微信读书 (WeRead)

最早一版是在 muzi502 的启发之下,将 Kindle 的 My Clippings.txt 文件直接转成 HTML,这样就可以静态文件直接交给 GitHub 托管了。

后来发现如果转成 markdown,然后借用静态网站生成器自动渲染成 HTML 就更加方便进行修改了,而不用使用模板或者手动拼装的方式组装 HTML 了。所以借用了 VuePress 项目,首先将书摘转变成 markdown,存放在 docs/ 下,然后使用 VuePress 通知渲染,成果见:

使用说明

Kindle

  1. 从 kindle 中拷贝出 My Clippings.txt 标注文件,附加到 source.txt 文件。

     cat /Volumes/Kindle/documents/My\ Clippings.txt >> source.txt
    
  2. 在 Python3 环境下执行 python kindle_convert.py,生成的 markdown 文件会按照书名,依次存放到 docs/kindle 目录下。

Moon+ Reader Pro

和 Kindle 摘录类似,从 Moon+ Reader Pro 中导出 .mrexpt 格式的文件。放到 moonreader 目录中。然后执行:

python moonreader.py

执行后,markdown 文件会保存到 docs/moonreader 目录下。

WeRead

微信读书可以导出纯文本的书摘,然后保存到 weread 文件夹中,然后执行:

python weread.py

执行后,markdown 文件会保存到 docs/weread 目录中。

Inspired by

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.