← 返回 Skills 市场
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bilibili-automation
功能描述
B站自动化 - 观看视频、提取字幕、总结内容
使用说明 (SKILL.md)
📺 B站自动化 Skill
自动观看 B站视频、提取字幕、总结视频内容。
🎯 功能
- 🔍 搜索 B站视频
- 📺 自动播放视频
- 📝 提取视频字幕
- 🤖 AI 总结视频内容
- 📊 获取视频信息(播放量、弹幕、评论)
🚀 使用方法
场景 1: 搜索并观看视频
用户说: "帮我找 B站上关于 Python 教程的视频"
AI 执行:
- 调用 BrowserWing 搜索 "Python 教程"
- 返回视频列表
- 用户选择后自动播放
场景 2: 提取视频字幕
用户说: "提取这个 B站视频的字幕 https://bilibili.com/video/BVxxxxx"
AI 执行:
- 调用 BrowserWing 打开视频
- 提取字幕/弹幕
- 返回文本内容
场景 3: 总结视频内容
用户说: "总结一下这个视频讲了什么"
AI 执行:
- 提取视频字幕
- 使用 AI 模型总结
- 返回要点摘要
🔧 API 调用
搜索视频
curl -X POST http://localhost:8080/api/v1/tasks/execute \
-H "Content-Type: application/json" \
-d '{
"scriptId": "bilibili-search",
"params": {
"keyword": "{{keyword}}",
"sort": "click" // click, pubdate, dm
}
}'
提取字幕
curl -X POST http://localhost:8080/api/v1/tasks/execute \
-H "Content-Type: application/json" \
-d '{
"scriptId": "bilibili-subtitle",
"params": {
"videoUrl": "{{videoUrl}}"
}
}'
获取视频信息
curl -X POST http://localhost:8080/api/v1/tasks/execute \
-H "Content-Type: application/json" \
-d '{
"scriptId": "bilibili-info",
"params": {
"videoUrl": "{{videoUrl}}"
}
}'
📋 参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| videoUrl | string | 是 | B站视频链接 |
| sort | string | 否 | 排序方式:click(播放量), pubdate(发布时间), dm(弹幕) |
🔐 安全配置
环境变量
# BrowserWing 服务地址
export BROWSERWING_URL=http://localhost:8080
# B站 Cookie(可选,用于登录功能)
export BILIBILI_SESSDATA=your_sessdata
export BILIBILI_BILI_JCT=your_bili_jct
Cookie 获取方法
- 登录 B站 (bilibili.com)
- 按 F12 打开开发者工具
- 切换到 Application/应用 → Cookies
- 找到
SESSDATA和bili_jct - 复制值并保存到环境变量
⚠️ 注意事项
- 遵守 B站规则 - 不要频繁请求,避免被封
- 版权问题 - 仅用于个人学习,不要商用
- 隐私保护 - Cookie 不要泄露给他人
- Rate Limit - 建议间隔 5-10 秒再请求
📝 示例对话
示例 1: 搜索视频
用户: 帮我找 B站上关于 OpenClaw 的视频
AI: 🔍 正在搜索 "OpenClaw"...
📺 找到 10 个相关视频:
1. OpenClaw 6大必要配置推荐 - 10万播放
2. OpenClaw 安装教程 - 5万播放
3. ...
用户: 播放第一个
AI: 📺 正在播放: OpenClaw 6大必要配置推荐
📝 提取字幕中...
✅ 已获取字幕,需要我总结一下吗?
示例 2: 提取字幕并总结
用户: 提取这个视频的字幕 https://bilibili.com/video/BV1G7PFz1E7x
AI: 📝 正在提取字幕...
✅ 字幕提取完成!
📊 视频时长: 15:30
📝 字幕字数: 3,500 字
🤖 需要我总结一下视频内容吗?
用户: 总结一下
AI: 📋 视频总结:
1. OpenClaw 安全性设置...
2. 记忆优化配置...
3. ...
🔧 故障排除
问题 1: 无法提取字幕
解决: 部分视频无字幕,尝试提取弹幕
问题 2: 视频无法播放
解决: 检查 BrowserWing 是否正常运行,Chrome 是否安装
问题 3: 需要登录
解决: 配置 B站 Cookie 到环境变量
📚 相关链接
- B站: https://www.bilibili.com
- BrowserWing: http://localhost:8080
- API 文档: http://localhost:8080/docs
创建时间: 2026-03-06
版本: 1.0.0
状态: ✅ 已配置,等待录制脚本
安全使用建议
This skill appears to do what it says (use a BrowserWing HTTP service to control a browser and extract subtitles), but exercise caution:
- Only run it against a BrowserWing service you trust and preferably on localhost. BROWSERWING_URL can be set to any URL — if you point it to a remote server an attacker could receive everything the skill sends (including cookies and scraped text).
- The SKILL.md asks you to export BILIBILI_SESSDATA and bili_jct cookies into environment variables for logged-in actions. Those are sensitive session tokens. Avoid storing them permanently; prefer ephemeral session links or use local BrowserWing with your authenticated browser instead.
- The skill's metadata does not list the cookie env vars as required, but the docs instruct using them. Ask the author (or avoid providing cookies) if you don't want to risk exposing your account.
- Verify BrowserWing is actually running locally (http://localhost:8080) before use. If you need login-only features, consider logging in interactively in a local browser and running BrowserWing locally instead of exporting cookies.
If you are comfortable hosting/trusting a local BrowserWing instance and you do not want to provide long-lived cookies, this skill is plausible to use. If you cannot verify the BrowserWing endpoint or are unwilling to expose session cookies, do not install or do not set the cookie env vars.
能力评估
Purpose & Capability
The name/description (B站自动化: search, play, extract subtitles, summarize) matches the runtime instructions which call a BrowserWing automation service via HTTP and use curl. Requiring curl and a BROWSERWING_URL is coherent for driving a local BrowserWing instance. meta.json lists exec/web_fetch tools which aligns with the described behavior.
Instruction Scope
SKILL.md instructs the agent to call BrowserWing endpoints to open pages, extract subtitles/danmaku, and fetch video info — that is within scope. However the docs also instruct the user to export sensitive Bilibili cookies (SESSDATA, bili_jct) as environment variables (for login) even though these cookies are not declared in the skill's required env list. Examples hardcode http://localhost:8080 rather than using the declared BROWSERWING_URL variable. The instructions give the agent discretion to fetch comments/danmaku and to perform playback automation but do not limit where BROWSERWING_URL may point.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. It simply requires curl to be present; nothing is downloaded or written by the skill itself.
Credentials
The skill's declared required env is only BROWSERWING_URL (reasonable). But SKILL.md encourages storing highly sensitive credentials (BILIBILI_SESSDATA, BILIBILI_BILI_JCT) in environment variables for login, and these are not listed as required in the metadata. Critically, BROWSERWING_URL could be set to a remote, untrusted server: if a user supplies cookies and points BROWSERWING_URL at a remote host, those cookies (and any scraped data) could be exfiltrated. Declaring cookies as optional is useful, but the combination with an unrestricted BROWSERWING_URL is a privacy/exfiltration risk.
Persistence & Privilege
Skill is not always: true, has no install step and does not request system-wide persistence or modify other skills. It can be invoked by the agent normally (disable-model-invocation is false), which is expected for skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bilibili-automation - 安装完成后,直接呼叫该 Skill 的名称或使用
/bilibili-automation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
bilibili-automation v1.0.0 – Initial release
- Automate key B站 (Bilibili) tasks: search, play videos, extract subtitles, summarize content, and fetch video info.
- Provides API endpoints for searching, subtitle extraction, and metadata retrieval through BrowserWing.
- User-invocable with simple environment variable setup for BrowserWing URL and B站 cookies.
- Includes clear usage scenarios, sample dialogues, troubleshooting, and safety advice.
- Supports both video subtitles and弹幕 extraction; includes rate limiting guidance.
元数据
常见问题
Bilibili Automation 是什么?
B站自动化 - 观看视频、提取字幕、总结内容. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。
如何安装 Bilibili Automation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-automation」即可一键安装,无需额外配置。
Bilibili Automation 是免费的吗?
是的,Bilibili Automation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bilibili Automation 支持哪些平台?
Bilibili Automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bilibili Automation?
由 maxsuki(@maxsuki)开发并维护,当前版本 v1.0.0。
推荐 Skills