
Twitter/X 的 CLI — 终端中的订阅源、书签和用户时间线
概览
Twitter/X 的终端优先 CLI:无需 API 密钥即可读取时间线、书签和用户资料。 - 小红书 — 小红书 CLI 用于笔记和账户工作流程 - bilibili-cli — 用于视频、用户、搜索和订阅源的 Bilibili CLI - discord-cli — 用于本地优先同步、搜索和导出的 Discord CLI - tg-cli — 用于本地优先同步、搜索和导出的 Telegram CLI - 时间线:为你获取及后续推文 - 书签:列出账户中保存的推文 - 搜索:按关键词查找推文,使用热门/最新/照片/视频标签页 - 推文详情:查看推文及其回复;使用显示打开最后列表输出的推文 #N - 文章:获取推特文章并导出为Markdown格式 - 列表时间线:从Twitter列表获取推文 - 用户查询:获取用户资料、推文、点赞、关注者和关注者 - --全文:在富表输出中禁用推文截断 - 结构化输出:导出任何数据为YAML或JSON以便脚本和AI代理集成 - 可选评分......
概述(AI 翻译)
Twitter/X 的终端优先 CLI:无需 API 密钥即可读取时间线、书签和用户资料。
更多工具
- 小红书 — 用于笔记和账户工作流程的 Xiaohongshu(小红书) CLI
- bilibili-cli — Bilibili CLI 用于视频、用户、搜索和订阅源
- discord-cli — 用于本地优先同步、搜索和导出的 Discord CLI
- tg-cli — 用于本地优先同步、搜索和导出的Telegram CLI
英文 |中文
英语
特色
阅读:
- 时间线:获取
for-you和following的输入 - 书签:列出账户中保存的推文
- 搜索:按关键词查找推文,包含热门/最新/照片/视频标签页
- 推文详情:查看推文及其回复;使用
show打开最后列表输出的推文 #N - 文章:获取Twitter文章并导出为Markdown
- 列表时间线:从推特列表中获取推文
- 用户查询:获取用户资料、推文、点赞、关注者和关注
--full-text:禁用富表输出中的推文截断- 结构化输出:将任何数据导出为YAML或JSON,以便脚本编写和AI代理集成
- 可选评分过滤器:按互动权重排序推文
- 结构化输出合同:SCHEMA.md
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
twitter-cli
A terminal-first CLI for Twitter/X: read timelines, bookmarks, and user profiles without API keys.
More Tools
- xiaohongshu-cli — Xiaohongshu (小红书) CLI for notes and account workflows
- bilibili-cli — Bilibili CLI for videos, users, search, and feeds
- discord-cli — Discord CLI for local-first sync, search, and export
- tg-cli — Telegram CLI for local-first sync, search, and export
English
Features
Read:
- Timeline: fetch
for-youandfollowingfeeds - Bookmarks: list saved tweets from your account
- Search: find tweets by keyword with Top/Latest/Photos/Videos tabs
- Tweet detail: view a tweet and its replies; use
showto open tweet #N from the last list output - Article: fetch a Twitter Article and export it as Markdown
- List timeline: fetch tweets from a Twitter List
- User lookup: fetch user profile, tweets, likes, followers, and following
--full-text: disable tweet text truncation in rich table output- Structured output: export any data as YAML or JSON for scripting and AI agent integration
- Optional scoring filter: rank tweets by engagement weights
- Structured output contract: SCHEMA.md
AI Agent Tip: Prefer
--yamlfor structured output unless a strict JSON parser is required. Non-TTY stdout defaults to YAML automatically. Use--maxto limit results.
Write:
- Post: create new tweets and replies, with optional image attachments (up to 4)
- Quote: quote-tweet with optional images
- Delete: remove your own tweets
- Like / Unlike: manage tweet likes
- Retweet / Unretweet: manage retweets
- Bookmark: bookmark/unbookmark (
favorite/unfavoritekept as compatibility aliases) - Write commands also support explicit
--json/--yamloutput now
Auth & Anti-Detection:
- Cookie auth: use browser cookies or environment variables
- Full cookie forwarding: extracts ALL browser cookies for richer browser context
- TLS fingerprint impersonation:
curl_cffiwith dynamic Chrome version matching x-client-transaction-idheader generation- Request timing jitter to avoid pattern detection
- Write operation delays (1.5–4s random) to mitigate rate limits
- Proxy support via
TWITTER_PROXYenvironment variable
Installation
# Recommended: uv tool (fast, isolated)
uv tool install twitter-cli
# Alternative: pipx
pipx install twitter-cli
Upgrade to the latest version:
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add public-clis/twitter-cli