catbus README

项目的 README,来自 github.com/cv-cat/catbus。合并为一个 markdown 文件:README.md。

catbus: One CLI, Every Platform. Install with npm i -g catbus-cli

GitHub stars License: MIT Node

English · 简体中文 · 日本語 · 한국어

catbus is an open-source CLI that drives every platform with one set of commands: RedNote, Douyin, TikTok, Bilibili, X, YouTube, Discord and more. Search, read, download, publish and message, and get the same JSON back every time. Use it yourself, or hand it to an AI agent.

Vectrust

Sponsored by Vectrust @ OpenDev Org & NextRouter Alliance · Want to appear here?

Quick start

npm i -g catbus-cli         # only Node needed

catbus bilibili auth login  # scan a QR code
catbus bilibili item search cat --limit 20
catbus tui    # don't want to memorize commands? use the full-screen UI
catbus web    # or browse in a local web UI

Prefer Docker or a source install? See the quick start guide. The full-screen interface is described in Terminal UI. catbus web opens a local web UI for searching, reading and downloading across platforms; try the online demo (demo data, no login).

One set of commands for every platform

Every command has three parts: catbus <platform> <resource> <action>. A RedNote note, a Bilibili video, a tweet and a Taobao listing are all an item, so the same command works everywhere. To switch platform, change only the platform name.

catbus xhs item search camping --limit 20             # search
catbus bilibili item get BV1xx411c7mD                 # read
catbus douyin comment list <item> --all -o jsonl      # export every comment
catbus youtube item download <item> --dir ./videos    # download
catbus x item publish --text "hello" --image cat.png  # publish
catbus bilibili live listen <room> --duration 10m     # follow live chat
catbus taobao msg send "hi" --item <url>              # message a seller
catbus 12306 ticket search beijing shanghai           # find train tickets

Every command returns the same JSON shape (trimmed here):

{
  "ok": true,
  "platform": "bilibili",
  "resource": "item",
  "action": "search",
  "data": [
    {
      "id": "BV1xx411c7mD",
      "kind": "video",
      "url": "https://www.bilibili.com/video/BV1xx411c7mD",
      "title": "…",
      "author": { "id": "…", "name": "…", "url": "…" },
      "stats": { "views": 12000, "likes": 340, "comments": 56, "collects": 78, "shares": 9 }
    }
  ],
  "page": { "cursor": "…", "has_more": true },
  "error": null
}

Platforms

16 platforms on board, and 26 more tagged soon

Tagged soon means on the way: the goal is every platform. Missing yours? Open an issue or add it yourself, a platform is one directory. See the capability matrix for what each one supports.

Why catbus

For AI agents

The catbus conductor riding a paper plane, holding a >_ ticket
npx skills add cv-cat/catbus

Installs the catbus skill into Claude Code, Cursor, Codex and friends. See also llms.txt and AGENTS.md.

Then just ask:

Find this week's 20 most-liked camping notes on RedNote, and list the gear people mention most.


Docs

Quick start · Login · Output and errors · Configuration · Docker · Platform guides · Examples · FAQ

The guides are in Chinese. Command names, options and JSON fields are in English.

Contributing

The catbus conductor sitting on a little red bus, waving

New platforms, commands and fixes are welcome. Read CONTRIBUTING.md and AGENTS.md first. Security issues go to SECURITY.md.


Star history

Star History Chart
Disclaimer
  • For learning and research only. Not for commercial or unlawful use.
  • Follow each platform's terms and your local laws. Do not collect or spread other people's private data, and do not overload platforms.
  • Automation can trigger risk control: CAPTCHAs, rate limits, even bans. You bear all consequences.
  • Not affiliated with, authorized or endorsed by any platform named here. Names, logos and trademarks belong to their owners.

License

MIT © 2026 cv-cat. Platform names and logos belong to their owners (sources).

catbus (cv-cat/catbus)

正在搜索数据库…

这是什么?catbus 是一个命令行工具,让你用一套统一的命令和 JSON 输出与 10 个主流中外平台(小红书、抖音、TikTok、Bilibili、快手、微博、闲鱼、淘宝、京东、X)打交道,而不必逐个学习各平台自己的 API。
catbus 是我导入的库,还是独立的命令行工具?它是一个在终端里运行的独立命令行工具;它还附带 Agent Skills 和 llms.txt,让 Claude Code、Cursor 或 Codex 这类 AI 编程智能体可以直接调用它,而不是让你把它作为库嵌入。
怎么让它跑起来?README 指向一个“30 秒快速上手”,通过 Node 安装;文档里还介绍了 Docker 和源码安装两种备选途径。
需要先装 Python 或什么编译工具链吗?不需要——唯一的条件是 Node.js。所有原生依赖都以预编译二进制的形式提供,覆盖 Windows、macOS 和 Linux 的 x64 与 arm64(包括 musl),并在 CI 中于 8 个目标系统上做过测试。
如果被平台的反机器人系统抓住了会怎样?自动化使用可能触发平台的风控,表现为验证码、限流或封号;catbus 会把它明确报告为 RISKCONTROL 错误并附上下一步提示,而不是默默重试。
catbus 如何确保它的请求与真实应用发送的完全一致?借助固定的随机种子和时钟,每个请求的 URL、请求头顺序、Cookie、正文和签名都会与上游客户端逐字节比对,背后有 560 多个差异数据集和 940 多个离线测试支撑。
它是怎么通过滑块和点选验证码的?它在沙箱里运行平台自己的签名 JavaScript,呈现与 Chrome 一致的 TLS/HTTP2 指纹,然后用 ONNX 和 OpenCV 在本地解决滑块和点选式验证码。
输出有什么特点让 AI 智能体容易串联调用?每个命令都返回相同的 {ok, data, page, error} 信封结构,失败的调用带有 error.hint 指出下一条要运行的命令,且每个结果对象都带有 id 和 url,可直接喂给下一次调用。
catbus 除了抓取,还能发布内容或发消息吗?可以——它支持发布、私信和读取直播弹幕,但写操作需要显式使用 -y 标志,而且出于安全考虑,发布的内容默认仅自己可见。
作者
cv-cat
大小
11.1 MB
星标
633
时长
2个月
提交 · 90 天