threads-poster
Post content to Threads using HTTP Browser API. Supports text, images, and scheduled posts for engagement optimization.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/threads-posterThreads 投稿スキル
Threads(Meta)への自動投稿を行うスキル。HTTP Browser APIを使用。
クイックスタート
基本投稿(HTTP API)
curl -X POST "${MOLTBOT_URL}/browser/sequence?secret=${CDP_SECRET}" \
-H "Content-Type: application/json" \
-d '{
"url": "https://threads.net",
"actions": [
{"type": "waitForSelector", "selector": "[aria-label=\"Create\"]"},
{"type": "click", "selector": "[aria-label=\"Create\"]"},
{"type": "waitForSelector", "selector": "[data-contents=\"true\"]"},
{"type": "type", "selector": "[data-contents=\"true\"]", "text": "投稿内容をここに"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"post-button\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}'
環境変数
export MOLTBOT_URL="https://your-worker.workers.dev"
export CDP_SECRET="your-secret"
投稿パターン(HTTP API)
1. テキスト投稿
{
"url": "https://threads.net",
"actions": [
{"type": "waitForSelector", "selector": "[aria-label=\"Create\"]"},
{"type": "click", "selector": "[aria-label=\"Create\"]"},
{"type": "waitForSelector", "selector": "[data-contents=\"true\"]"},
{"type": "type", "selector": "[data-contents=\"true\"]", "text": "投稿内容"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"post-button\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}
2. プロフィールから投稿
{
"url": "https://threads.net/@yourusername",
"actions": [
{"type": "click", "selector": "[aria-label=\"Create\"]"},
{"type": "waitForSelector", "selector": "[data-contents=\"true\"]"},
{"type": "type", "selector": "[data-contents=\"true\"]", "text": "投稿内容"},
{"type": "wait", "ms": 1000},
{"type": "click", "selector": "[data-testid=\"post-button\"]"},
{"type": "wait", "ms": 3000},
{"type": "screenshot"}
]
}
セレクタ一覧(2026年版)
const SELECTORS = {
// 投稿関連
createButton: '[aria-label="Create"]',
newPostButton: '[aria-label="New post"]',
textArea: '[data-contents="true"]',
postButton: '[data-testid="post-button"]',
// メディア
imageUpload: 'input[type="file"]',
// その他
closeModal: '[aria-label="Close"]',
};
投稿方法の比較
方法1: HTTP Browser API(推奨・即時開始可能)
利点:
├── 審査不要、即日開始
├── 全機能利用可能
├── WebSocket不要(HTTP only)
└── 柔軟な操作
注意点:
├── UIの変更に弱い
├── CAPTCHAリスク
└── レート制限に注意
方法2: Threads API(審査通過後)
利点:
├── 安定した動作
├── レート制限が明確
└── 公式サポート
制限:
├── Meta審査が必要(数週間〜数ヶ月)
├── ビジネスアカウント必須
└── 機能制限あり
ログインフロー(HTTP API)
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-threads-poster": {
"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.