← 返回 Skills 市场
54lynnn

Bilibili AI Subtitle

作者 54Lynnn · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
377
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install bilibili-ai-subtitle
功能描述
Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated...
使用说明 (SKILL.md)

Bilibili AI Subtitle Downloader v2.0

Download AI-generated subtitles from Bilibili videos quickly.

What This Skill Does

This skill downloads AI-generated subtitles (自动生成的字幕) from Bilibili videos. These are subtitles automatically created by Bilibili's AI system, not manually uploaded by creators.

Key improvements from v1.x:

  • ✅ Customizable language priority (e.g., prefer English over Chinese)
  • ✅ Better filename format: Title_Author_Date_Duration_BVid.txt
  • ✅ Three-part document structure (Info, Summary, Full Text)
  • ✅ Improved UTF-8 filename handling
  • ✅ Better WSL Chromium/Windows Edge Cookie support

Supported AI Languages

Bilibili uses ai- prefix for AI-generated subtitles:

Code Language 语言
ai-zh Chinese 中文
ai-en English 英文
ai-ja Japanese 日文
ai-es Spanish 西班牙文
ai-ar Arabic 阿拉伯文
ai-pt Portuguese 葡萄牙文
ai-ko Korean 韩文
ai-de German 德文
ai-fr French 法文

Usage

Basic Usage

./scripts/bilibili_ai_subtitle.sh "https://www.bilibili.com/video/BVxxxxx/"

Specify Language Priority

# Prefer English, fallback to Chinese
./scripts/bilibili_ai_subtitle.sh -l en,zh "BVxxxxx"

# Prefer Japanese
./scripts/bilibili_ai_subtitle.sh --lang ja "BVxxxxx"

# Multiple languages in order of preference
./scripts/bilibili_ai_subtitle.sh -l en,zh,ja,es "BVxxxxx"

Output

File name format: VideoTitle_Author_Date_Duration_BVid.txt

File structure:

第一部分:视频信息
├── 视频标题
├── B站链接
├── 作者
├── 发布时间
├── 视频时长
├── 原视频语言
└── 转录来源

第二部分:视频摘要
└── 自动生成的内容摘要

第三部分:完整原文
└── 完整字幕文本

Setup

Browser Cookie (Recommended)

For accessing member-only videos, log in to Bilibili in:

  • WSL Chromium (preferred): chromium-browser &
  • Windows Edge: Log in normally

The script will automatically detect and use available cookies.

Requirements

  • yt-dlp installed
  • Optional: Browser with Bilibili login (for member-only videos)

Notes

  • AI subtitles are generated automatically by Bilibili's system
  • Accuracy varies (typically 85-95% for clear speech)
  • Not all videos have AI subtitles available
  • Some videos may require membership to access AI subtitles

Comparison with bilibili-transcript

Feature bilibili-ai-subtitle bilibili-transcript
Purpose Download AI subtitles only Full transcription workflow
Speed ⚡ Fast (instant download) Varies (subtitles → Whisper)
Subtitle sources AI only CC → AI → Whisper
Use case Quick subtitle grab Complete transcription
Dependencies yt-dlp only yt-dlp + optional Whisper

Recommendation: Use bilibili-ai-subtitle for quick AI subtitle download, use bilibili-transcript when you need complete transcription (including voice transcription for videos without subtitles).

安全使用建议
This skill appears coherent for its stated purpose. Before installing/running: 1) Ensure yt-dlp and python3 are installed and up-to-date. 2) Review the script yourself (it is short and readable). 3) Be aware it will try to read local browser cookie stores (WSL Chromium path or Windows Edge user data under /mnt/c/Users) to access member-only videos — if you don't want that, run the script without cookies or remove the cookie-detection block. 4) Provide an explicit output directory when invoking to avoid the hardcoded /home/administrator path. 5) Run in a sandbox or test environment if you are unsure about giving the script access to browser profile directories.
功能分析
Type: OpenClaw Skill Name: bilibili-ai-subtitle Version: 2.0.0 The script `scripts/bilibili_ai_subtitle.sh` automatically attempts to locate and access browser cookie databases from the host system, specifically targeting WSL Chromium and Windows Edge profiles (via `/mnt/c/Users/`). While this is documented as a feature to allow `yt-dlp` to access member-only content, the automated scanning of host user directories and browser data represents a significant privacy risk. There is no evidence of intentional data exfiltration or malicious logic, but the capability to access sensitive host-level credentials warrants a suspicious classification.
能力评估
Purpose & Capability
The name/description (download Bilibili AI subtitles) align with the provided script and SKILL.md. The script uses yt-dlp to list and fetch AI subtitles, parses metadata, and writes a formatted TXT — all directly related to the stated purpose.
Instruction Scope
Runtime instructions and the script stay within subtitle-download scope. The script enumerates local browser cookie stores (WSL Chromium path and Windows Edge user data under /mnt/c/Users) to supply yt-dlp with cookies for member-only videos — this is relevant to the feature but does access local browser profile paths. No other files, external endpoints, or unrelated system data are accessed or transmitted.
Install Mechanism
There is no install step (instruction-only + shell script). No remote downloads or archive extraction are performed by the skill itself. The only declared dependency in SKILL.md is yt-dlp (the script also uses python3, coreutils like sed/grep/find/wc/date which are normal).
Credentials
The skill requests no environment variables or credentials. It does, however, attempt to read local browser cookie stores and enumerates /mnt/c/Users to locate a Windows Edge profile for cookie extraction — behavior that is explainable for accessing member-only videos but is sensitive because it uses authenticated browser cookies. Also the default output directory is a hardcoded path (/home/administrator/.openclaw/workspace/...) if none is provided, which may be surprising; supplying an explicit output directory is advisable.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify other skills or global agent config. It runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bilibili-ai-subtitle
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bilibili-ai-subtitle 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Major update: Add language priority selection (-l/--lang), improve filename format, three-part document structure, better UTF-8 handling. Sync improvements from bilibili-transcript.
v1.3.0
Add multi-language AI subtitle support: ai-zh, ai-en, ai-ja, ai-es, ai-ar, ai-pt, ai-ko. Auto-detect available language.
v1.2.0
Fix: Use both --write-subs and --write-auto-subs for reliable AI subtitle download. Add better WSL Chromium detection.
v1.1.0
Fix: Use correct language code 'ai-zh' for Bilibili AI subtitles. Add WSL Chromium support.
v1.0.0
Initial release: Download Bilibili AI-generated subtitles quickly
元数据
Slug bilibili-ai-subtitle
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Bilibili AI Subtitle 是什么?

Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 377 次。

如何安装 Bilibili AI Subtitle?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-ai-subtitle」即可一键安装,无需额外配置。

Bilibili AI Subtitle 是免费的吗?

是的,Bilibili AI Subtitle 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bilibili AI Subtitle 支持哪些平台?

Bilibili AI Subtitle 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bilibili AI Subtitle?

由 54Lynnn(@54lynnn)开发并维护,当前版本 v2.0.0。

💬 留言讨论