Giter Site home page Giter Site logo

euds63 / kindle-clippings Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lxyu/kindle-clippings

0.0 0.0 0.0 9 KB

A simple python script to extract clippings from 'My Clippings.txt', organize, store and output them in a more elegant way.

Python 100.00%

kindle-clippings's Introduction

Kindle Clippings

A simple python script to extract clippings from 'My Clippings.txt', organize, store and output them in a more elegant way.

Features

Clippings are stored in a python dict with this structure

    clips = {'book': {'position': 'clipping'}}

Msgpack was used to serialize clippings for archive.

Each new My Clippings.txt will add clips to previous archive automatically.

Clips will be export to output directory, find them there.

It's EASY and you don't need to care nothing!

Usage

Install msgpack-python first.

    $ pip install msgpack-python

Clone project and put My\ Clippings.txt to project's root.

Run kindle.py

    $ python kindle.py

DONE!

Demo

Example output files tree:

    $ tree .
    .
    ├── My Clippings.txt
    ├── README.rst
    ├── clips.msgpack
    ├── kindle.py
    └── output
        ├── Hackers & Painters (Paul Graham).txt
        ├── Life of Pi (Yann Martel).txt

Example output file contet:

Nerds aren't losers. They're just playing a different game, and a game much closer to the one played in the real world. Adults know this. It's hard to find successful adults now who don't claim to have been nerds in high school.

---

What hackers and painters have in common is that they're both makers. Along with composers, architects, and writers, what hackers and painters are trying to do is make good things. They're not doing research per se, though if in the course of trying to make good things they discover some new technique, so much the better.

---

This is not a problem for big companies, because they don't win by making great products. Big companies win by sucking less than other big companies.

Reference

kindle-clippings's People

Contributors

lxyu avatar tevino avatar euds63 avatar

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.