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.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for readwise_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffc64338e1eb86eccb462622a79e83f741cc95d41407952432ca1116708c24e2 |
|
MD5 | 8050fdd66136170fce129e56f300166b |
|
BLAKE2b-256 | b9e53903dfcf392f9177f69e6c1f0d7d8fbafd2bec4fc227a1bc53a1460025c9 |