Amazon Kindle clippings parser
Project description
Clippings
Python module to manipulate Amazon Kindle clippings files.
It allows you to:
- Parse your existing clippings file into a structured representation;
- Generate clippings file programmatically.
Installation
pip install clippings
Usage
Command-line Usage
# Parse a clippings file
clippings -o json ./clippings.txt
# or from stdin:
cat clippings.txt | clippings -
Programmatic Usage
from clippings import parse_clippings
my_clippings_file = ...
parse_clippings(my_clippings_file)
Want to parse non-English clippings?
Here's a highlight clipping taken from a Kindle that speaks Spanish::
El Principe de la Niebla (Carlos Ruiz Zafón)
- La subrayado en la página 4 | posición 60-60 | Añadido el miércoles, 6 de julio de 2022 06:54:57
asintiendo a una pregunta que Max no había llegado a formular.
parse_clippings
won't parse this by default but you can write your own parser for
the second line and pass it to the parameter metadata_parser
.
You can take a look at an example here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clippings-0.9.0.tar.gz
(5.9 kB
view details)
File details
Details for the file clippings-0.9.0.tar.gz
.
File metadata
- Download URL: clippings-0.9.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c55649bc2ce72f6e4efb0dd350a1de4396e4909370d5b73f145a1adc4174bde |
|
MD5 | 9683420623f211a4e42c37b68983616d |
|
BLAKE2b-256 | 5c1034ed529804ddae013123d2a37cc30e47abac86f9fb3c3ae0cdcddf784e2f |