← 返回
未分类 Key 中文

Readwise Reader

Interact with Readwise Reader library to list, create, update, and delete documents. Use when the user wants to manage their saved articles, reading lists, o...
与Readwise Reader库交互,列出、创建、更新和删除文档。用于管理保存的文章和阅读列表。
xinthink xinthink 来源
未分类 clawhub v0.2.3 1 版本 100000 Key: 需要
★ 1
Stars
📥 364
下载
💾 1
安装
1
版本
#latest#v0.2.3

概述

Reader

Interact with Readwise Reader library using executable scripts.

Quick Start

All Reader operations are available as scripts in the scripts/ subdirectory:

ScriptPurposeInput
------------------------
list_documents.pyQuery documentsCLI flags
create_document.pySave URL/contentJSON payload
update_document.pyModify documentJSON payload
bulk_update_documents.pyBatch modify (max 50)JSON payload
delete_document.pyRemove documentsJSON payload
list_tags.pyList all tagsCLI flags

Authentication

Set the READWISE_ACCESS_TOKEN environment variable using one of these methods:

Method 1: Using a .env file

Create a .env file in the project directory:

READWISE_ACCESS_TOKEN=your-token-here

The scripts automatically load environment variables from .env using python-dotenv.

Method 2: Command line

Export in shell:

export READWISE_ACCESS_TOKEN=your-token-here

Or inline for a single command:

READWISE_ACCESS_TOKEN=your-token-here python scripts/list_documents.py

Getting your token

Get your token from: https://readwise.io/access_token

Setup

Install the required dependencies before using the scripts:

pip install -r scripts/requirements.txt

Common Workflows

List documents in a folder

python scripts/list_documents.py --location later --limit 10

Save a URL with tags

echo '{"url": "https://example.com/article", "tags": ["important"]}' | python scripts/create_document.py

Archive a document

echo '{"id": "doc-id", "location": "archive"}' | python scripts/update_document.py

Bulk archive multiple documents

echo '{"updates": [{"id": "doc1", "location": "archive"}, {"id": "doc2", "location": "archive"}]}' | python scripts/bulk_update_documents.py

Error Handling

Exit CodeMeaningAction
----------------------------
0SuccessParse stdout
1API errorCheck stderr for details
2Auth errorVerify READWISE_ACCESS_TOKEN
3Rate limitWait and retry
4Invalid inputFix payload/flags

Errors are written to stderr in JSON format:

{"error": {"type": "...", "message": "...", "hint": "..."}}

Rate Limits

Scripts automatically handle retries for rate limits (429) and server errors (5xx).

No action needed unless exit code 3.

Resources

版本历史

共 1 个版本

  • v0.2.3 当前
    2026-03-31 07:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 88 📥 168,547
knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 966 📥 522,567
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 450 📥 105,778