x-browser
Post to X (Twitter) using HTTP Browser API. Supports tweets, replies, threads, and media uploads without API costs.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/x-browserX(Twitter) ブラウザ自動化スキル
X(旧Twitter)へのブラウザ自動化投稿スキル。HTTP Browser APIを使用。
クイックスタート
基本投稿(HTTP API)
curl -X POST "${MOLTBOT_URL}/browser/sequence?secret=${CDP_SECRET}" \
-H "Content-Type: application/json" \
-d '{
"url": "https://x.com/compose/tweet",
"actions": [
{"type": "waitForSelector", "selector": "[data-testid=\"tweetTextarea_0\"]"},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_0\"]", "text": "投稿内容をここに"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"tweetButton\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}'
環境変数
export MOLTBOT_URL="https://your-worker.workers.dev"
export CDP_SECRET="your-secret"
なぜブラウザ自動化?
X API の問題
API制限:
├── Basic: $100/月 → 3,000 tweets/月
├── Pro: $5,000/月 → 1M tweets/月
├── 無料: 読み取りのみ、投稿不可
└── 頻繁な仕様変更
HTTP Browser APIの利点
メリット:
├── 完全無料
├── 全機能利用可能
├── APIの仕様変更に依存しない
├── 人間と同じ操作
└── WebSocket不要(HTTP only)
リスク:
├── UIの変更で壊れる可能性
├── アカウント凍結リスク(過度な自動化)
└── CAPTCHA対応が必要な場合あり
投稿パターン(HTTP API)
1. テキスト投稿
{
"url": "https://x.com/compose/tweet",
"actions": [
{"type": "waitForSelector", "selector": "[data-testid=\"tweetTextarea_0\"]"},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_0\"]", "text": "投稿内容"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"tweetButton\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}
2. スレッド投稿
{
"url": "https://x.com/compose/tweet",
"actions": [
{"type": "waitForSelector", "selector": "[data-testid=\"tweetTextarea_0\"]"},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_0\"]", "text": "スレッド1つ目 🧵"},
{"type": "click", "selector": "[data-testid=\"addButton\"]"},
{"type": "wait", "ms": 500},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_1\"]", "text": "スレッド2つ目"},
{"type": "click", "selector": "[data-testid=\"addButton\"]"},
{"type": "wait", "ms": 500},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_2\"]", "text": "スレッド3つ目(完)"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"tweetButton\"]"},
{"type": "wait", "ms": 5000},
{"type": "screenshot"}
]
}
3. ホーム画面から投稿
{
"url": "https://x.com/home",
"actions": [
{"type": "waitForSelector", "selector": "[data-testid=\"SideNav_NewTweet_Button\"]"},
{"type": "click", "selector": "[data-testid=\"SideNav_NewTweet_Button\"]"},
{"type": "waitForSelector", "selector": "[data-testid=\"tweetTextarea_0\"]"},
{"type": "type", "selector": "[data-testid=\"tweetTextarea_0\"]", "text": "投稿内容"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"tweetButton\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}
セレクタ一覧(2026年版)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-sa9saq-x-browser": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
threat-model
Threat modeling and attack scenario design. Identify risks before they become vulnerabilities. STRIDE, attack trees, risk matrix.
Sns Auto Poster
Schedule and automate social media posts to X/Twitter with cron-based queue management.
security-review
Comprehensive security review for code, configs, and operations. OWASP, prompt injection, crypto security. Auto-triggers on security-related changes.
Process Monitor
Monitor system processes, identify top CPU/memory consumers, and alert on resource thresholds.
Readme Generator
Auto-generate comprehensive README.md files by analyzing project structure and configuration.