Skip to main content

WuCai (五彩) CLI — web highlight, clipping, and diary tool

Project description

wucai-cli

License: MIT-0 PyPI - Version

五彩 (WuCai) 命令行工具 — 从终端管理你的网页划线、剪藏与日记。

安装

pip install wucai-cli

配置

设置环境变量:

export WUCAI_API_TOKEN="wct-你的Token"
export WUCAI_REGION="cn"   # cn(中国区) | eu(欧洲区) | us(美国区)

Token 获取地址(需登录对应区域账号):

区域 Token 页面
CN marker.dotalk.cn
EU eu.wucainote.com
US us.wucainote.com

拷贝以 wct- 开头的 OpenClaw 专用 Token,不要错拷贝成普通 API Key。

命令

命令 说明
wucai list-highlights 查看最新划线
wucai list-articles 查看文章列表
wucai list-diary 查看日记
wucai search-highlights 搜索划线内容
wucai search-articles 搜索文章标题/笔记
wucai get-article 获取文章详情
wucai append-diary 追加日记
wucai set-status 修改文章状态
wucai trash 移入回收站
wucai update-note 更新页面笔记

使用示例

# 查看今日划线
wucai list-highlights

# 查看最近 48 小时划线(仅文章)
wucai list-highlights --range 48h --type 1

# 搜索划线内容
wucai search-highlights --query "machine learning"

# 查看本周文章(带高亮内容)
wucai list-articles --range week --with-highlights

# 通过 URL 获取文章详情
wucai get-article --url "https://example.com/article"

# 追加日记
wucai append-diary --content "今天学到了新东西"

# 修改文章状态为归档
wucai set-status --note-idx <id> --status archive

# 人类可读输出
wucai list-highlights -o text

通用参数

参数 说明
--range 时间范围:today / yesterday / week / 24h / 48h / 7d / YYYY-MM-DD / start:end
--page-size 每页数量(默认 12)
--cursor 游标翻页
-o / --output 输出格式:json(紧凑)/ pretty(缩进)/ text(人类可读)

14 天限制:所有时间查询跨度不得超过 14 天。如需查询更早内容,请指定具体日期。

相关链接

License

MIT-0 (MIT No Attribution)

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

wucai_cli-26.3.48.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wucai_cli-26.3.48-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file wucai_cli-26.3.48.tar.gz.

File metadata

  • Download URL: wucai_cli-26.3.48.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for wucai_cli-26.3.48.tar.gz
Algorithm Hash digest
SHA256 b977789b4101e132fc986ea1ec8217b51d8347ff02eee5817a4c162322dbe70f
MD5 21cc411250d1a97d0ee47d00cb9bd9ca
BLAKE2b-256 ae3c8790414c7aae85cc5fe85047dc449cc76ce741d680cf44fad8c1fae7d411

See more details on using hashes here.

File details

Details for the file wucai_cli-26.3.48-py3-none-any.whl.

File metadata

  • Download URL: wucai_cli-26.3.48-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for wucai_cli-26.3.48-py3-none-any.whl
Algorithm Hash digest
SHA256 837cf671ee2ddced1ea1be90c8bd9f8dac22c408453b50ad84498810609382a8
MD5 c6375b2056b4e089b7e542bd3702b466
BLAKE2b-256 03b42f94da33809eaddf16f53dbafc8a5b4b46867c8db6bd90891274f017684e

See more details on using hashes here.

Supported by

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