网淘吧来吧,欢迎您!

Bird Twitter

2026-04-01 新闻来源:网淘吧 围观:34
电脑广告
手机广告

Bird Twitter 技能 🐦

使用bird的快速 Twitter/X CLI 包装器——通过 Twitter 的 GraphQL API 发布推文、回复、阅读、搜索和管理您的时间线。

必需的环境变量

export AUTH_TOKEN=<your_twitter_auth_token>
export CT0=<your_twitter_ct0_cookie>

如何获取令牌

  1. 在浏览器中登录 Twitter/X
  2. 打开开发者工具 (F12)
  3. 转到 Application/Storage → Cookies → twitter.com
  4. 复制:
    • auth_tokenAUTH_TOKEN
    • ct0CT0

快速使用

# Check login status
bird whoami

# Check credential availability
bird check

# Post a tweet
bird tweet "Hello from bird-twitter skill!"

# Reply to a tweet
bird reply <tweet-id-or-url> "Great thread!"

# Read a tweet
bird read <tweet-id-or-url>

# Read with JSON output
bird read <tweet-id-or-url> --json

# Search tweets
bird search "query"

# Get home timeline
bird home

# Get mentions
bird mentions

# Get liked tweets
bird likes

# Follow a user
bird follow <username>

# Get user's tweets
bird user-tweets <handle>

# Get trending topics
bird news
bird trending

命令

发布

命令描述
bird tweet <文本>发布一条新推文
bird reply <网址> <文本>回复一条推文
bird tweet <文本> --media <路径>发布带媒体的推文(最多4张图片或1个视频)

读取

命令描述
bird read <网址>读取/获取一条推文
bird thread <网址>显示完整对话线程
bird replies <网址>列出对一条推文的回复
bird user-tweets <用户名>获取用户的推文

时间线

命令描述
bird home首页时间线("为你推荐"信息流)
bird mentions提及你的推文
bird likes你点赞的推文
bird bookmarks您收藏的推文

搜索与发现

命令描述
bird search <查询词>搜索推文
bird news来自“探索”的AI精选新闻
bird trending热门话题

账户管理

命令描述
bird whoami显示已登录账户
bird check检查凭证可用性
bird follow <用户>关注用户
bird unfollow <用户>取消关注用户
bird followers列出您的关注者
bird following列出您关注的用户
鸟类清单您的Twitter清单

输出选项

选项描述
--jsonJSON输出
--json-full包含原始API响应
--plain纯文本(无表情符号,无颜色)
--no-emoji禁用表情符号
--no-color禁用ANSI颜色
--timeout <毫秒>请求超时

配置

读取自:

Bird Twitter

  • ~/.config/bird/config.json5
  • ./.birdrc.json5

支持:chromeProfile,firefoxProfile,cookieTimeoutMs,timeoutMs,quoteDepth

环境变量

变量描述
AUTH_TOKEN必需— Twitter 的 auth_token cookie
CT0必需— Twitter 的 ct0 cookie
NO_COLOR禁用颜色
BIRD_TIMEOUT_MS默认超时时间
BIRD_COOKIE_TIMEOUT_MSCookie 提取超时时间
BIRD_QUOTE_DEPTH最大引用推文深度

示例

# Check who's logged in
bird whoami

# Post a simple tweet
bird tweet "Hello world from OpenClaw!"

# Post with an image
bird tweet "Check this out!" --media ./image.png

# Reply to a tweet
bird reply 1234567890123456789 "Thanks for sharing!"

# Search for tweets about AI
bird search "artificial intelligence" --json

# Get your home timeline
bird home -n 20

# Read a tweet thread
bird thread https://x.com/user/status/1234567890

# Get trending topics
bird trending

故障排除

401 未授权

请检查AUTH_TOKENCT0已设置且有效。运行bird check以验证。

令牌过期

Twitter 令牌会定期过期。请从浏览器 cookie 中重新复制。

速率受限

Twitter GraphQL API 有速率限制。请等待几分钟后重试。


TL;DR:通过 bird 实现快速的 Twitter/X 命令行操作。设置AUTH_TOKENCT0,然后就可以发推、阅读、搜索和管理你的时间线了!

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部
上一篇:Composio Integration 下一篇:Streaming Buddy

相关文章

您是本站第389577名访客 今日有1篇新文章/评论