8000 GitHub - anakles/kindle-to-md: Tool to get annotations from Kindle into markdown format.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

anakles/kindle-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

kindle-to-md

A small tool that allows you to download annotations you have made on your Kindle via the Kindle Store and transforms them into markdown notes.

Example

This is how the output looks:

[!quote] Position 266: Markets, the medium of capitalism, have been replaced by digital trading platforms which look like, but are not, markets, and are better understood as fiefdoms. And profit, the engine of capitalism, has been replaced with its feudal predecessor: rent.

[!quote] Position 268: I call it cloud rent.

Installation

git clone https://github.com/anakles/kindle-to-md.git
cd kindle-to-md
pip install -r requirements

Requirements The tool requires you to have fzf installed on your system.

Usage

The script, when called, asks you for a cookie. You can get this cookie by logging into the Kindle Store in any browser. Only the following cookies are required:

  • at-main is necessary
  • x-main is necessary
  • ubid-main is necessary

You can copy the cookie from your browser's developer tools in the "Network" or "Storage" tab. Paste the cookie value into the prompt and confirm with Enter. The value of the cookie is not reflected.

You can select the book you want to export your annotations for withing fzf.

❯ python kindle-to-md.py -h
usage: kindle-to-md.py [-h] output_path

Fetch data from a predefined URL using a provided cookie.

positional arguments:
  output_path  Path to save the output file

options:
  -h, --help   show this help message and exit

Example Usage:

❯ python kindle-to-md.py output/
Enter the cookie: *****
You selected: {'ASIN': 'B0BS37DHM3', 'Title': 'Technofeudalism: What Killed Capitalism', 'Author': 'Yanis Varoufakis', 'Date': 'Friday March 14, 2025'}
Annotations fetched successfully!
Data successfully saved to output/Technofeudalism: What Killed Capitalism

About

Tool to get annotations from Kindle into markdown format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0