twitter-agent-skill
适用于 OpenClaw 代理的基于 Cookie 的 Twitter/X 自动化工具包(时间线、通知、发布、关注操作)。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~gan12003-twitter-apicURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~gan12003-twitter-api/file -o gan12003-twitter-api.md## 概述(中文) 适用于 OpenClaw 代理的基于 Cookie 的 Twitter/X 自动化工具包(时间线、通知、发布、关注操作)。 ## 原文 # twitter-agent-skill ## Summary Async Twitter/X client and scripts that rely on auth_token + ct0 cookies (no official API keys). Supports: - Home timeline fetch + summary (`scripts/timeline_summary.py`). - Notifications fetch + signal analysis (`scripts/fetch_notifications.py`, `scripts/analyze_signal.py`). - Posting and follow automation via env-driven account labels (`scripts/post_custom_tweet.py`, `scripts/follow_account.py`). - Full async client (`twitter_api/`) with modules for tweets, users, relationships, DMs, etc. ## Setup 1. `pip install -r requirements.txt` (Python 3.10+). 2. Copy `.env.example` → `.env` and fill cookies per account (auth_token + ct0 from logged-in sessions). 3. Run scripts from repo root, e.g.: ``` python scripts/timeline_summary.py python scripts/post_custom_tweet.py account_a "hello" python scripts/follow_account.py thenfter07 ``` ## Notes - Env variable names are generic (`ACCOUNT_A_AUTH_TOKEN`, etc.); rename as needed and adjust `ACCOUNT_ENV` dicts in the scripts. - Respect Twitter/X ToS and do not spam. - Designed for GanClaw social ops, but neutral enough for other agents to reuse.