Small Rust program to parse Kindle clips and upload them to Notion.
NOTION_API_KEY=...
NOTION_PAGE_ID=...
# Optional:
CLIPPINGS_LOCATION="documents/My Clippings.txt"
.env
file at the root of your Kindle with the same structure as this example .env
file
NOTION_API_KEY
is the API key for your integrationNOTION_PAGE_ID
is the page ID of the page where you want to insert your clippings pagesShare
menu on DesktopCLIPPINGS_LOCATION
is the location of the My Clippings.txt
file relative to the programFor each book which has clippings, a new page gets created inside the page with id NOTION_PAGE_ID
If the book name contains the :
character, only the text before it is used for the page title
The book author gets his own callout block
Inside the page each clip is its own quote block, finished with an inline date referencing the capture day
Each quote gets tagged with the clipping date/time, using the machine's local timezone
#==========
gets appended to the file to mark where the parsing ended
There can only be 100 blocks in a Notion page so this program won't work if you have over 100 quotes for a book
A database page can be used as the root. Each group of quotes will therefore be a database row.
If you want to give a shot, here are some example features that would be welcome additions: