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 — инструмент командной строки, позволяющий общаться с 10 крупными китайскими и международными платформами (Xiaohongshu, Douyin, TikTok, Bilibili, Kuaishou, Weibo, Xianyu, Taobao, JD, X) через единый согласованный набор команд и вывод JSON, вместо того чтобы изучать API каждой платформы.
catbus — это библиотека для импорта или самостоятельный CLI?Это самостоятельный CLI, запускаемый из терминала; он также поставляется с Agent Skills и llms.txt, чтобы ИИ-агенты для кодинга вроде Claude Code, Cursor или Codex могли вызывать его напрямую, а не встраивать его как библиотеку.
Как его запустить?README отсылает к «30-секундному quick start» с установкой через Node; альтернативные пути через Docker и из исходников описаны в документации.
Нужны ли сначала Python или какой-нибудь компиляторный тулчейн?Нет — требуется только Node.js. Все нативные зависимости поставляются в виде предсобранных бинарников для Windows, macOS и Linux на x64 и arm64 (включая musl), протестированных в CI на 8 целевых системах.
Что будет, если антибот-система платформы меня заметит?Автоматическое использование может задеть риск-контроль платформы, что проявляется как капчи, ограничение частоты запросов или блокировка аккаунта; catbus явно сообщает об этом ошибкой RISKCONTROL с подсказкой следующего шага, а не молча повторяет попытки.
Как catbus убеждается, что его запросы действительно совпадают с тем, что шлёт настоящее приложение?URL каждого запроса, порядок заголовков, cookies, тело и подпись побайтово сверяются с апстрим-клиентами с помощью фиксированных случайных сидов и часов; этому служат 560+ наборов diff-данных и 940+ офлайн-тестов.
Как он проходит капчи-слайдеры и клик-капчи?Он запускает собственный подписывающий JavaScript платформы в песочнице и подставляет TLS/HTTP2-отпечаток, совпадающий с Chrome, а затем решает капчи-слайдеры и капчи с кликами локально с помощью ONNX и OpenCV.
Что упрощает ИИ-агенту выстраивание вывода в цепочки?Каждая команда возвращает одинаковую обёртку {ok, data, page, error}, неудачные вызовы содержат error.hint со следующей командой для запуска, а каждый объект-результат несёт id и url, чтобы сразу подставляться в следующий вызов.
Может ли catbus публиковать контент или отправлять сообщения, а не только собирать данные?Да — он поддерживает публикацию, личные сообщения и чтение живого данмаку, но действия записи требуют явного флага -y, а опубликованный контент по умолчанию виден только вам, из соображений безопасности.
Автор
cv-cat
Размер
11.1 MB
Звёзды
633
Возраст
2 мес
Коммиты · 90 дней