Skip to content

A script to turn a Kindle MyClippings.txt file into a structured csv file.

License

Notifications You must be signed in to change notification settings

anaulin/clippings.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clippings.py

A Python script to extract book highlights from a Kindle MyClippings.txt file into a structured file.

Installation

Requires Python 3.

Install dependencies with pip or easy_install:

pip install -r requirements.txt

Running

Extract highlights from MyClippings.txt file to .csv spreadsheet:

$ ./clippings.py extract MyClippings.txt

Full usage:

$ ./clippings/clippings.py --help
MyClippings.txt management tool.

Usage:
  clippings.py extract INFILE [-o FILE] [--no-title]
  clippings.py (-h | --help)
  clippings.py --version

Options:
  -o FILE       Specify output file [default ./clippings.csv]
  -h --help     Show this screen
  --no-title    Omit title row in output.
  --version     Show version

Environment and dependencies setup

Create new virtual env:

python3 -m venv .venv

Activate virtual env:

source .venv/bin/activate

Install requirements:

pip install -r requirements.txt

Related work

kindle-clippings is a Python script that processes your My Clippings.txt file and outputs clippings as RST files.

About

A script to turn a Kindle MyClippings.txt file into a structured csv file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published