bilibili-subtitle
处理 B 站(哔哩哔哩)视频字幕的完整工作流。能力包括:(1)引导用户扫码登录获取 Cookie;(2)自动获取视频字幕(优先 AI 字幕,自动回退 CC 字幕);(3)生成视频内容摘要;(4)当用户询问"某内容在哪个时间段"时,从字幕文件中精准定位时间戳。当用户提供 B 站视频链接、BVID,或提到"b站字幕""帮我看视频""视频摘要""视频哪里讲到了""字幕提取"等任何与 B 站视频内容理解相关的场景时,务必使用此 skill。即使用户只是随口提到一个 bilibili 链接,也应该触发此 skill。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/baikemark/bilibili-summaryWhat This Skill Does
The bilibili-subtitle skill is a robust, self-contained AI agent tool designed to streamline the consumption and analysis of Bilibili (B站) video content. By automating the extraction, processing, and management of video subtitles, this skill enables users to interact with video data in a way that feels like chatting with a document. It handles the complete lifecycle, from secure authentication via Bilibili's login system to the generation of structured summaries and precision search functionality using SRT timestamp indexing.
Installation
To begin, ensure you have the OpenClaw environment set up. Install the skill via the command line:
clawhub install openclaw/skills/skills/baikemark/bilibili-summary
Ensure your local environment has the necessary Python libraries:
pip install requests
Optionally, install qrcode if you prefer to see the login QR code rendered directly in your terminal. All required scripts are contained within the scripts/ folder of the skill directory.
Use Cases
- Efficient Learning: Quickly understand long educational videos or tutorials by generating structured summaries without watching the entire duration.
- Content Retrieval: Pinpoint specific segments where a speaker discusses a particular topic, saving time spent scanning through long progress bars.
- Archive Management: Create a local repository of video content in
.txt,.srt, and.vttformats for personal reference and future accessibility. - Login Automation: Simplifies the often cumbersome process of managing Bilibili cookies for automated data retrieval.
Example Prompts
- "帮我看看这个视频讲了什么:https://www.bilibili.com/video/BV1ZL411o7LZ,做个摘要。"
- "在这个视频里,作者是在哪里提到关于‘人工智能伦理’这个话题的?"
- "帮我提取一下 BV1ZL411o7LZ 这个视频的字幕文件。"
Tips & Limitations
- Accuracy: The skill prioritizes AI-generated subtitles for higher quality; it automatically falls back to standard CC subtitles if AI ones are unavailable.
- Hardcoded Content: Please note that this skill cannot perform OCR. If a video uses "hard-burned" subtitles (embedded in the video frames), the skill will notify you that extraction is not possible.
- Auth Maintenance: If you receive authentication errors, simply trigger the
cookie_login.pyscript to refresh yourcookie.txtsession data. - File Management: The skill creates an organized
subtitles_outputdirectory; avoid manually deleting files within this folder while the agent is running to prevent caching issues.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-baikemark-bilibili-summary": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, code-execution