One patch → Your browser becomes the ultimate scraping API
bb-browser is brilliant — it turns 36+ websites into CLI commands using your browser's login state. No API keys needed.
But it doesn't work with AutoClaw.
bb-browser calls npx openclaw by default, which points to the npm version that lacks browser support. AutoClaw's built-in openclaw has full browser control, but bb-browser can't find it.
This repo fixes that with a single command.
After patching, you get structured tweet data straight in your terminal:
$ bb-browser site twitter/tweets elonmusk --count 3 --openclaw --json{
"count": 3,
"tweets": [
{
"id": "2038138194861166638",
"type": "tweet",
"author": "elonmusk",
"text": "Tesla FSD",
"likes": 46103,
"retweets": 4686,
"created_at": "Sun Mar 29 06:16:27 +0000 2026"
},
{
"id": "2038140569655165031",
"type": "retweet",
"author": "elonmusk",
"rt_author": "DimaZeniuk",
"text": "Starship is the first planet-colonizer class rocket",
"likes": 8076,
"retweets": 1722,
"created_at": "Sun Mar 29 06:25:53 +0000 2026"
},
{
"id": "2038280385835307008",
"type": "tweet",
"author": "elonmusk",
"text": "SpaceX Falcon 9 family has now launched 636 times and counting...",
"likes": 2167,
"retweets": 456,
"created_at": "Sun Mar 29 18:36:52 +0000 2026"
}
]
}Real data. Real time. No API key. No rate limit. Your browser, your login.
- AutoClaw installed (includes
openclawwith browser support) - Node.js 18+ and npm
- A browser with Twitter/X logged in
- Windows (Linux/macOS support coming)
# 1. Install bb-browser and patch for AutoClaw
npm install -g bb-browser && bb-browser site update
node patch-bridge.js
# 2. Open x.com and log in
openclaw browser start
openclaw browser open https://x.com
# → Log in to your Twitter account in the browser window
# 3. Scrape tweets
bb-browser site twitter/tweets elonmusk --count 5 --openclaw --jsonThat's it. You're scraping tweets.
The auto-patcher (patch-bridge.js) makes 4 surgical changes to bb-browser's bridge file:
| # | Change | Why |
|---|---|---|
| 1 | npx → AutoClaw's built-in node path |
bb-browser defaults to npm's openclaw which lacks browser support |
| 2 | Remove "openclaw" arg prefix |
AutoClaw's openclaw.mjs doesn't need the openclaw subcommand |
| 3 | Tabs timeout: 15s → 60s | AutoClaw startup needs more time than the default |
| 4 | Evaluate timeout: 120s → 180s | Complex page evaluations need extra safety margin |
The patch is idempotent — run it multiple times safely. It auto-backs up the original file.
| Platform | Adapter | Status | How it works |
|---|---|---|---|
| Twitter/X | twitter/tweets |
✅ Verified | GraphQL API + cookie auth |
| Twitter/X | twitter/search |
✅ Verified | Search API + cookie auth |
reddit/hot |
✅ Verified | Cookie-based fetch | |
| 微博 Weibo | weibo/hot |
✅ Verified | Cookie-based fetch |
| 知乎 Zhihu | zhihu/hot |
✅ Needs login | Cookie-based fetch |
| Bilibili | bilibili/popular |
✅ Verified | Cookie-based fetch |
| HackerNews | hackernews/top |
Firebase API blocked in browser context |
# Search tweets
bb-browser site twitter/search "AI Agent" --count 10 --openclaw --json
# Reddit front page
bb-browser site reddit/hot --openclaw --json
# Weibo trending
bb-browser site weibo/hot --openclaw --json
# Zhihu hot questions (needs login)
bb-browser site zhihu/hot --openclaw --json
# Filter with jq
bb-browser site twitter/tweets elonmusk --count 5 --openclaw --json | jq '.tweets[] | {text, likes}'npm update -g bb-browseroverwrites the patch — re-runnode patch-bridge.js- x.com requires network access (China users need a proxy)
- HackerNews uses public Firebase API which gets CORS-blocked in browser context (not a bridge issue)
- Xiaohongshu adapter has XHR interception cache bugs — unreliable
Copy the entire content of SETUP.md and paste it to your AutoClaw AI. It will automatically:
- Install bb-browser
- Run the patch script
- Start the browser and open x.com
- Wait for your manual login
- Verify by scraping tweets
See CONTRIBUTING.md for bug reports, feature requests, and pull requests.
MIT — Use it however you want.
- bb-browser — The core tool that makes websites into CLI commands
- AutoClaw — AI agent framework with built-in browser control
If this saved you from Twitter API rate limits, ⭐ star this repo!
Made with 🦞 by Lobster Company