logo
0
0
WeChat Login
yan5xu<lueco.x@gmail.com>
docs: update README with 93 adapters across 35 platforms

bb-sites

bb-browser 的社区网站适配器 — 把网站变成 CLI 命令。

每个适配器是一个 JS 函数,通过 bb-browser eval 在你的浏览器里运行。浏览器已经登录了 — 不需要 API key,不需要偷 Cookie,不需要反爬。

English · 中文

95 个适配器,覆盖 35 个平台 — 持续增长中。

快速开始

bb-browser site update # 安装/更新适配器 bb-browser site list # 列出所有命令 bb-browser site reddit/me # 运行命令 bb-browser site reddit/thread <url> # 带参数运行

适配器列表

🔍 搜索引擎

平台命令说明
Googlegoogle/searchGoogle 搜索
百度baidu/search百度搜索
Bingbing/searchBing 搜索
DuckDuckGoduckduckgo/searchDuckDuckGo 搜索(HTML 轻量版)
搜狗sogou/weixin搜狗微信文章搜索

📰 新闻资讯

平台命令说明
BBCbbc/newsBBC 新闻头条(RSS)或搜索
路透社reuters/search路透社新闻搜索
今日头条toutiao/search, toutiao/hot头条搜索、热榜
东方财富eastmoney/news财经热点新闻

💬 社交媒体

平台命令说明
Twitter/Xtwitter/user, twitter/thread, twitter/search, twitter/tweets, twitter/notifications用户资料、推文线程、搜索、时间线、通知
Redditreddit/me, reddit/posts, reddit/thread, reddit/context用户信息、发帖、讨论树、评论链
微博weibo/me, weibo/hot, weibo/feed, weibo/user, weibo/user_posts, weibo/post, weibo/comments完整微博支持 — 资料、热搜、时间线、发帖、评论
虎扑hupu/hot虎扑步行街热帖

💻 技术开发

平台命令说明
GitHubgithub/me, github/repo, github/issues, github/issue-create, github/pr-create, github/fork用户信息、仓库、Issue、PR、Fork
Hacker Newshackernews/top, hackernews/thread热门文章、帖子 + 评论树
Stack Overflowstackoverflow/search搜索问答
CSDNcsdn/searchCSDN 技术文章搜索
博客园cnblogs/search博客园技术文章搜索
npmnpm/search搜索 npm 包
PyPIpypi/search, pypi/package搜索 & 查看 Python 包详情
arXivarxiv/search搜索学术论文
Dev.todevto/search搜索 Dev.to 文章
V2EXv2ex/hot, v2ex/latest, v2ex/topic最热/最新主题、主题详情 + 回复

🎬 影音娱乐

平台命令说明
YouTubeyoutube/search, youtube/video, youtube/comments, youtube/channel, youtube/feed, youtube/transcript搜索、视频详情、评论、频道、Feed、字幕文稿
B站bilibili/me, bilibili/popular, bilibili/ranking, bilibili/search, bilibili/video, bilibili/comments, bilibili/feed, bilibili/history, bilibili/trending完整 B站 支持 — 9 个适配器
IMDbimdb/searchIMDb 电影搜索
Geniusgenius/search歌曲/歌词搜索
豆瓣douban/search, douban/movie, douban/movie-hot, douban/movie-top, douban/top250, douban/comments豆瓣电影 — 搜索、详情、排行、Top 250、短评
起点中文网qidian/search小说搜索

💼 求职招聘

平台命令说明
BOSS直聘boss/search, boss/detail搜索职位、查看 JD 详情
LinkedInlinkedin/profile, linkedin/search用户 Profile、帖子搜索

💰 财经股票

平台命令说明
东方财富eastmoney/stock, eastmoney/news股票实时行情、财经新闻
Yahoo Financeyahoo-finance/quote美股行情(AAPL, TSLA 等)

📱 数码科技

平台命令说明
GSMArenagsmarena/search手机参数搜索
Product Huntproducthunt/today今日热门产品

📚 知识百科

平台命令说明
维基百科wikipedia/search, wikipedia/summary搜索、页面摘要
知乎zhihu/me, zhihu/hot, zhihu/question, zhihu/search用户信息、热榜、问答、搜索
Open Libraryopenlibrary/search图书搜索

🌐 生活服务

平台命令说明
有道翻译youdao/translate翻译/词典查询
携程ctrip/search目的地景点搜索

🗨️ 即时通讯

平台命令说明
即刻jike/feed, jike/search推荐 Feed、搜索动态
小红书xiaohongshu/me, xiaohongshu/feed, xiaohongshu/search, xiaohongshu/note, xiaohongshu/comments, xiaohongshu/user_posts完整小红书支持,基于 Pinia Store Actions

所有小红书适配器使用 Pinia Store Actions — 调用页面自己的 Vue store 函数,走完整的签名 + 拦截器链路。零逆向。

使用示例

# 搜索 bb-browser site google/search "bb-browser" bb-browser site duckduckgo/search "Claude Code" # 社交媒体 bb-browser site twitter/search "claude code" bb-browser site twitter/tweets plantegg bb-browser site reddit/thread https://reddit.com/r/programming/comments/... bb-browser site weibo/hot # 技术调研 bb-browser site github/repo epiral/bb-browser bb-browser site hackernews/top 10 bb-browser site stackoverflow/search "python async await" bb-browser site arxiv/search "large language model" bb-browser site npm/search "react state management" # 影音娱乐 bb-browser site youtube/transcript dQw4w9WgXcQ bb-browser site bilibili/search 编程 bb-browser site douban/top250 # 财经股票 bb-browser site yahoo-finance/quote AAPL bb-browser site eastmoney/stock 贵州茅台 # 求职 bb-browser site boss/search "AI agent" bb-browser site linkedin/search "AI agent" # 翻译 bb-browser site youdao/translate hello

开发适配器

运行 bb-browser guide 查看完整开发流程,或阅读 SKILL.md

/* @meta { "name": "platform/command", "description": "这个适配器做什么", "domain": "www.example.com", "args": { "query": {"required": true, "description": "搜索关键词"} }, "readOnly": true, "example": "bb-browser site platform/command value1" } */ async function(args) { if (!args.query) return {error: 'Missing argument: query'}; const resp = await fetch('/api/search?q=' + encodeURIComponent(args.query), {credentials: 'include'}); if (!resp.ok) return {error: 'HTTP ' + resp.status, hint: 'Not logged in?'}; return await resp.json(); }

贡献

# 方式 A:使用 gh CLI gh repo fork epiral/bb-sites --clone cd bb-sites && git checkout -b feat-mysite # 添加适配器文件 git push -u origin feat-mysite gh pr create # 方式 B:使用 bb-browser(不需要 gh) bb-browser site github/fork epiral/bb-sites git clone https://github.com/你的用户名/bb-sites && cd bb-sites git checkout -b feat-mysite # 添加适配器文件 git push -u origin feat-mysite bb-browser site github/pr-create epiral/bb-sites --title "feat(mysite): 添加适配器" --head "你的用户名:feat-mysite"

私有适配器

私有适配器放在 ~/.bb-browser/sites/,同名时优先于社区适配器。

~/.bb-browser/ ├── sites/ # 私有适配器(优先) │ └── internal/ │ └── deploy.js └── bb-sites/ # 本仓库(bb-browser site update) ├── reddit/ ├── twitter/ ├── github/ ├── youtube/ ├── bilibili/ ├── zhihu/ ├── weibo/ ├── douban/ ├── xiaohongshu/ ├── google/ ├── ... # 35 个平台目录 └── qidian/