← Back to Skills Marketplace
maxsuki

Bilibili Automation

by maxsuki · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
89
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install bilibili-automation
Description
B站自动化 - 观看视频、提取字幕、总结内容
README (SKILL.md)

📺 B站自动化 Skill

自动观看 B站视频、提取字幕、总结视频内容。

🎯 功能

  • 🔍 搜索 B站视频
  • 📺 自动播放视频
  • 📝 提取视频字幕
  • 🤖 AI 总结视频内容
  • 📊 获取视频信息(播放量、弹幕、评论)

🚀 使用方法

场景 1: 搜索并观看视频

用户说: "帮我找 B站上关于 Python 教程的视频"

AI 执行:

  1. 调用 BrowserWing 搜索 "Python 教程"
  2. 返回视频列表
  3. 用户选择后自动播放

场景 2: 提取视频字幕

用户说: "提取这个 B站视频的字幕 https://bilibili.com/video/BVxxxxx"

AI 执行:

  1. 调用 BrowserWing 打开视频
  2. 提取字幕/弹幕
  3. 返回文本内容

场景 3: 总结视频内容

用户说: "总结一下这个视频讲了什么"

AI 执行:

  1. 提取视频字幕
  2. 使用 AI 模型总结
  3. 返回要点摘要

🔧 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 获取方法

  1. 登录 B站 (bilibili.com)
  2. 按 F12 打开开发者工具
  3. 切换到 Application/应用 → Cookies
  4. 找到 SESSDATAbili_jct
  5. 复制值并保存到环境变量

⚠️ 注意事项

  1. 遵守 B站规则 - 不要频繁请求,避免被封
  2. 版权问题 - 仅用于个人学习,不要商用
  3. 隐私保护 - Cookie 不要泄露给他人
  4. 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 到环境变量

📚 相关链接


创建时间: 2026-03-06
版本: 1.0.0
状态: ✅ 已配置,等待录制脚本

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bilibili-automation
  3. After installation, invoke the skill by name or use /bilibili-automation
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug bilibili-automation
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Bilibili Automation?

B站自动化 - 观看视频、提取字幕、总结内容. It is an AI Agent Skill for Claude Code / OpenClaw, with 89 downloads so far.

How do I install Bilibili Automation?

Run "/install bilibili-automation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bilibili Automation free?

Yes, Bilibili Automation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Bilibili Automation support?

Bilibili Automation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bilibili Automation?

It is built and maintained by maxsuki (@maxsuki); the current version is v1.0.0.

💬 Comments