Skip to content

Convert owned Kindle books to PDF without needing a device. Good for viewing on a ReMarkable.

License

Notifications You must be signed in to change notification settings

teticio/kindle2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kindle2PDF and PDF2Remarkable

Introduction

A Python script to render your Kindle books as PDFs without needing a device. This is ideal if you want to read them on a reMarkable tablet or similar.

A script is also provided to upload the PDFs to the reMarkable Cloud, which is particularly useful on Linux as the official desktop application is not available.

Installation

pip install kindle2pdf

Usage

First you need to login to https://read.amazon.com/. The Python script will automatically retreive any cookies it needs. Then, assuming you own the book with the ASIN B0182LFAIA, you can run the following command:

kindle2pdf B0182LFAIA

To find out the ASIN of any book, you can either inspect the URL of the book in the Kindle Cloud Reader, or search for it in Amazon. You'll need to make sure that it corresponds to the edition that you own.

If you want to upload a PDF to the reMarkable Cloud you can add the switch --remarkable to kindle2pdf or simply

pdf2remarkable "The Cybergypsies.pdf"

The first time you run this, you will be asked to pair your device. Just follow the instructions and paste your OTC.

Troubleshooting

  • If you get a "Permission denied" error when running kindle2pdf on Windows, try closing any Chrome browsers.

  • If you have any other problems with cookies in spite of having logged in to https://read.amazon.com, please check https://github.com/borisbabic/browser_cookie3/issues.

  • If you have authentication problems with pdf2remarkable or want to re-pair your device, delete the .pdf2remarkable file in your home directory and run the script again.

  • Otherwise, if you run into what looks to be a bug, you can run kindle2pdf with --save-mock and create an issue with a link to your responses.jsonl for debugging purposes. Any sensitive IDs or persistent tokens will have been removed. Please also give details of your Operating System.

About

Convert owned Kindle books to PDF without needing a device. Good for viewing on a ReMarkable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages