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.3.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for readwise_api-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6815d02186e429d67c1484156b4f31065f7696d24dc5c4ebfc67350179f3fe50 |
|
MD5 | dd0e02610cae268ed65d4e4a91e7f950 |
|
BLAKE2b-256 | 4a2b1648646c62ebfeb3507f892d37ecd1c03090143617101e4427dcbf33483c |