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.50.tar.gz (6.5 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.50-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wucai_cli-26.3.50.tar.gz
  • Upload date:
  • Size: 6.5 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.50.tar.gz
Algorithm Hash digest
SHA256 2298778d8346e93dd74de8854cfc4a8e4fec11c2ba1a111fb0ed33500401ce0c
MD5 9333de9fa1491cabb8b6d94257286395
BLAKE2b-256 04b3c21fcb802a9195b1d0b60500ea686cad145ff48f767c83b3041010f96001

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wucai_cli-26.3.50-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.50-py3-none-any.whl
Algorithm Hash digest
SHA256 4be4fa76fb76565d0db1efcda006fd2954f260d49e5794896f2c942e97c839bb
MD5 c98f462c299a469b6691eb5378de53bf
BLAKE2b-256 c48a353c65006930aa19aab2bb8758b2b6995fe8af249ae229ba35b788a71fb7

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