ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

x-browser

Post to X (Twitter) using HTTP Browser API. Supports tweets, replies, threads, and media uploads without API costs.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/sa9saq/x-browser
Or

X(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

Author@sa9saq
Stars1133
Views0
Updated2026-02-18
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-sa9saq-x-browser": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.