Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kindle2pdf-0.4.4.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

kindle2pdf-0.4.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file kindle2pdf-0.4.4.tar.gz.

File metadata

  • Download URL: kindle2pdf-0.4.4.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.0-8-generic

File hashes

Hashes for kindle2pdf-0.4.4.tar.gz
Algorithm Hash digest
SHA256 601cfb35d983c2d52216e23ef2be4f1961c5ac0f19f2a777c1fa5556c99653db
MD5 376e2bc5c7e3231135e1fed9e5833bc2
BLAKE2b-256 68cf7318d2becf901e0507fd177e191454faa5bd8742f7ac3dcbe2cbb1bccc9a

See more details on using hashes here.

File details

Details for the file kindle2pdf-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: kindle2pdf-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.0-8-generic

File hashes

Hashes for kindle2pdf-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5d3e7d366fd4eee2d896c03d53a371d447f1c281a057eceedf253b97237d14
MD5 e14e07c60aed3df59253768ec95dca00
BLAKE2b-256 4f50e136899b0d8a3cb14903169469a9e1a823d9e92fffd5d0e944423cd84c6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page