Bilibili Watcher
Fetch transcripts from Bilibili (B 站) videos to enable summarization, QA, and content extraction.
Usage
Get Transcript
Retrieve the text transcript of a B 站 video.
CODEBLOCK0
Examples
Summarize a video:
- 1. Get the transcript:
python3 {baseDir}/scripts/get_transcript.py "https://www.bilibili.com/video/BV1xx411c7mD"
- 2. Read the output and summarize it for the user.
Find specific information:
- 1. Get the transcript.
- Search the text for keywords or answer the user's question based on the content.
Notes
- - Requires
yt-dlp to be installed and available in the PATH. - Works with videos that have closed captions (CC) or auto-generated subtitles.
- If a video has no subtitles, the script will fail with an error message.
- Supports B 站 video URLs in formats:
- https://www.bilibili.com/video/BV1xx411c7mD
- https://b23.tv/xxxxxx
- https://www.bilibili.com/video/av12345678
Bilibili Watcher
从Bilibili(B站)视频中获取字幕,以实现摘要生成、问答和内容提取功能。
使用方法
获取字幕
获取B站视频的文字字幕。
bash
python3 {baseDir}/scripts/get_transcript.py https://www.bilibili.com/video/BV1xx411c7mD
示例
视频摘要生成:
- 1. 获取字幕:
bash
python3 {baseDir}/scripts/get_transcript.py https://www.bilibili.com/video/BV1xx411c7mD
- 2. 读取输出内容并为用户生成摘要。
查找特定信息:
- 1. 获取字幕。
- 在文本中搜索关键词,或根据内容回答用户的问题。
注意事项
- - 需要安装 yt-dlp 并将其添加到系统环境变量 PATH 中。
- 仅适用于包含隐藏式字幕(CC)或自动生成字幕的视频。
- 如果视频没有字幕,脚本将运行失败并显示错误信息。
- 支持的B站视频URL格式:
- https://www.bilibili.com/video/BV1xx411c7mD
- https://b23.tv/xxxxxx
- https://www.bilibili.com/video/av12345678