Format Kindle clippings as JSON.
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
my_clippings_to_json Rename app.py to io.py Jun 13, 2016
.gitignore Configure CLI Jun 8, 2016
README.md Update documentation Jun 2, 2017
publish.sh Configure setup Jun 12, 2016
setup.py Use skewer-case for CLI command Jun 2, 2017

README.md

my-clippings-to-json

Format 'Kindle/documents/My Clippings.txt' as JSON.

Example

[{
  "body": "in certain contexts at least, the transparency of open code should be a requirement.",
  "created_at": 1462434461,
  "title": "Code version 2.0",
  "subtype": "Highlight",
  "page": 143,
  "authors": ["Lessig, Lawrence"],
  "location_range": [2618, 2619]
}]

Installation

First install pipsi.

pipsi install .

Usage

my-clippings-to-json [OPTIONS] INPUT_PATH OUTPUT_PATH

Arguments

INPUT_PATH

Path to input file.

OUTPUT_PATH

Path to output file.

File existing at OUTPUT_PATH will be overwritten.

Options

-h, --help

Show help page.

-s, --start INTEGER

Start at line number of input file (default: 1).

INTEGER should be the first line of the target clipping or the last line of the preceding clipping. If INTEGER falls in the middle of a clipping, that clipping will be skipped.

my-clippings-to-json writes the last line number to stdout. Next time, start at this line number.