An unofficial Python client for the Readwise Reader API.
Project description
Readwise API
An unofficial Python client for the Readwise Reader API.
Installation
pip install readwise-api
Usage
Prerequisites
First, you have to obtain a Readwise access token.
Then, the token has to be stored, either into an .env file or an environment variable using export READWISE_TOKEN=<your_token>
.
Python API
import readwise
List all documents:
readwise.get_documents(location="new")
Get a single document by its ID:
readwise.get_document_by_id("<document_id>")
CLI
List all documents:
readwise list new
Naturally, the output can be saved to a JSON file:
readwise list new > new_documents.json
Get a single document by its ID:
readwise get <document_id>
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
readwise_api-0.2.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for readwise_api-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4632b056e51b11d0c7f552933ee77306e455d594f7a5dd447ae865144dc6cb4a |
|
MD5 | 266a28a6b5d0a8b2bb37ae9f46336701 |
|
BLAKE2b-256 | a56edc32323be0475805b471ffd2c9b901701e2af8b88a2ff2020a824bcad5ce |