搜索

PythonReactSEOPDF
OpenClaw

twitter-agent-skill

Cookie-based Twitter/X automation toolkit (timeline, notifications, posting, follow ops) for OpenClaw agents.

gan120030 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install gan12003/twitter-api

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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.

来源信息

Source
github
Repository
openclaw/skills
Path
skills/gan12003/twitter-api
Version
—
Commit
ada6cc1b5c4003e260237f12b7573f35dc1a0856
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Twitter Agent Skill

Async tooling for Twitter/X automations that rely on cookie-based auth (auth_token + ct0). This packages the client wrappers and helper scripts we use in GanClaw’s social stack so other agents don’t have to rebuild the plumbing.

Features

  • twitter_api/ package (aiohttp) with modules for tweets, users, relationships, timeline service, etc.
  • Helper scripts under scripts/:
    • timeline_summary.py – fetch the home timeline and summarize top authors/topics.
    • fetch_notifications.py – pull notifications and store them as JSON.
    • analyze_signal.py – combine timeline + notifications into a markdown signal report.
    • post_custom_tweet.py – publish a tweet from any configured account.
    • follow_account.py – make every configured account follow a given handle.
  • Auth is session-based (same cookies your browser uses) so there’s no dependency on official API keys.

Requirements

  • Python 3.10+
  • pip install -r requirements.txt
  • .env file with session cookies for each account you want to automate.
Environment variables

Copy .env.example to .env and fill the cookies for each account you care about. Example:

ACCOUNT_A_AUTH_TOKEN=auth_token_here
ACCOUNT_A_CT0=ct0_here
ACCOUNT_B_AUTH_TOKEN=
ACCOUNT_B_CT0=
...

You can rename the env keys—just update ACCOUNT_ENV in the helper scripts so the labels match the keys you choose.

Usage

git clone https://github.com/GAN12003/twitter-agent-skill.git
cd twitter-agent-skill
python -m venv .venv && .venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env  # fill in your auth_token + ct0 values

# timeline + notification summaries
python scripts/timeline_summary.py
python scripts/fetch_notifications.py
python scripts/analyze_signal.py

# posting / following (pass one of the logical account labels)
python scripts/post_custom_tweet.py account_a "hello from the telemetry deck"
python scripts/follow_account.py thenfter07

All scripts load the `...

来源内容

SKILL.md
# 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.
README
# Twitter Agent Skill

Async tooling for Twitter/X automations that rely on cookie-based auth (`auth_token` + `ct0`). This packages the client wrappers and helper scripts we use in GanClaw’s social stack so other agents don’t have to rebuild the plumbing.

## Features
- `twitter_api/` package (aiohttp) with modules for tweets, users, relationships, timeline service, etc.
- Helper scripts under `scripts/`:
  - `timeline_summary.py` – fetch the home timeline and summarize top authors/topics.
  - `fetch_notifications.py` – pull notifications and store them as JSON.
  - `analyze_signal.py` – combine timeline + notifications into a markdown signal report.
  - `post_custom_tweet.py` – publish a tweet from any configured account.
  - `follow_account.py` – make every configured account follow a given handle.
- Auth is session-based (same cookies your browser uses) so there’s no dependency on official API keys.

## Requirements
- Python 3.10+
- `pip install -r requirements.txt`
- `.env` file with session cookies for each account you want to automate.

### Environment variables
Copy `.env.example` to `.env` and fill the cookies for each account you care about. Example:
```
ACCOUNT_A_AUTH_TOKEN=auth_token_here
ACCOUNT_A_CT0=ct0_here
ACCOUNT_B_AUTH_TOKEN=
ACCOUNT_B_CT0=
...
```
You can rename the env keys—just update `ACCOUNT_ENV` in the helper scripts so the labels match the keys you choose.

## Usage
```
git clone https://github.com/GAN12003/twitter-agent-skill.git
cd twitter-agent-skill
python -m venv .venv && .venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env  # fill in your auth_token + ct0 values

# timeline + notification summaries
python scripts/timeline_summary.py
python scripts/fetch_notifications.py
python scripts/analyze_signal.py

# posting / following (pass one of the logical account labels)
python scripts/post_custom_tweet.py account_a "hello from the telemetry deck"
python scripts/follow_account.py thenfter07
```
All scripts load the `...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance