返回顶部
x

x-managerX账号管理

Manage X (Twitter) accounts — post tweets, like, reply, retweet, view timeline, search, auto-interact, analyze data.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
276
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

x-manager

X Manager - Twitter/X 账号管理

管理 X(原 Twitter)账号:发帖、互动、时间线和数据分析。

多用户架构

每个用户的凭证存储在 credentials/{USER_ID}.json 中:

json
{
twitter: {
api_key: ,
api_secret: ,
access_token: ,
accesstokensecret: ,
bearer_token:
}
}

如果用户未配置 Twitter 凭证,提示其先绑定 X 账号。

或设置环境变量:TWITTERAPIKEY、TWITTERAPISECRET、TWITTERACCESSTOKEN、TWITTERACCESSTOKENSECRET、TWITTERBEARER_TOKEN。

支持的操作

1. 发布推文

bash
python3 {baseDir}/scripts/posttweet.py ID> <推文内容> [--media <图片路径>]

最多 280 个字符。较长的推文会自动分段(适用于 Premium/Enterprise 账号)。

2. 互动

点赞:

bash
python3 {baseDir}/scripts/liketweet.py ID> <推文ID>

回复:

bash
python3 {baseDir}/scripts/replytweet.py ID> <推文ID> <回复内容>

转发:

bash
python3 {baseDir}/scripts/retweet.py <推文ID>

3. 数据获取

用户推文:

bash
python3 {baseDir}/scripts/getusertweets.py [--count <数量>]

时间线:

bash
python3 {baseDir}/scripts/gettimeline.py ID> [--count <数量>]

搜索:

bash
python3 {baseDir}/scripts/searchtweets.py ID> <关键词> [--count <数量>]

自动互动工作流

在 state/{USER_ID}.json 中配置:

json
{
auto_reply: {
enabled: true,
keywords: [关键词1, 关键词2],
reply_template: 感谢 {username} 提及 {keyword}!
}
}

错误处理

  • - API 速率限制:提示用户等待并重试
  • 认证失败:提示用户重新绑定 X 账号
  • 推文过长:自动分段或提示用户缩短

Twitter API 层级

  • - 免费版:只读,无法发帖
  • Premium($100/月):发帖 + 数据分析
  • 企业版:更高限制

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 x-manager-1776185195 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 x-manager-1776185195 技能

通过命令行安装

skillhub install x-manager-1776185195

下载

⬇ 下载 x-manager v0.1.0(免费)

文件大小: 8.42 KB | 发布时间: 2026-4-15 10:19

v0.1.0 最新 2026-4-15 10:19
Initial release of x-manager.

- Manage X (Twitter) accounts: post tweets, like, reply, retweet, view timeline, search, auto-interact, and analyze data.
- Supports multi-user credentials with environment variable or JSON file binding.
- Provides scripts for posting, engaging with tweets, and retrieving timelines or search results.
- Auto-interaction workflow configurable per user.
- Handles API rate limits, authentication errors, and tweet length issues.
- Notes feature and limitation differences by Twitter API tier.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large