自動化瀏覽器技能 - 使用已登入的 Brave 瀏覽器查看 X/Twitter、Facebook 用戶帖子
目前僅支援:
x / twitter - X/Twitter(完整功能)facebook / fb - Facebook(基本功能)暫不支援:Instagram、LinkedIn、YouTube 等
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
| ------ | ------ | ------ | ------ | ------ |
username | string | ✅ | - | 帳號名稱(不需 @) |
platform | string | ❌ | x | x、twitter、facebook、fb |
maxPosts | number | ❌ | 5 | 最大帖子數(建議 ≤ 20) |
includeStats | boolean | ❌ | true | 是否包含互動數據 |
node index.js realDonaldTrump x 5 true
node index.js markzuckerberg facebook 3 false
await sessions_spawn({
runtime: "subagent",
task: JSON.stringify({
skill: "brave-loggedin-tag-browsing",
params: { username: "elonmusk", platform: "x", maxPosts: 5, includeStats: true }
})
});
{
"username": "realDonaldTrump",
"platform": "x",
"loginStatus": "💰 錢錢AI (@MVenusean67544)",
"profile": { "name": "...", "bio": "...", "followers": "110.8M" },
"posts": [
{ "time": "2026-03-02T16:20:05.000Z", "text": "...", "stats": { "likes": "459K" } }
],
"metadata": { "maxPosts": 5, "timestamp": "...", "connectionMode": "opencdl" }
}
| 問題 | 解決方案 |
|---|---|
| ------ | ---------- |
| 連接 OpenClaw Brave 失敗 | 先執行 /browser start |
| 提示安裝瀏覽器 | npx playwright install chromium |
| 未檢測到登入 | 在 Brave 中手動登入目標平台 |
| 提取不到帖子 | 增加等待時間或檢查 DOM 選擇器 |
CC BY-NC 4.0
共 1 个版本