bilibili-subtitle-text
Skill5 starsChanged 56 days agoMITView on GitHub
B站字幕提取 / Bilibili subtitles to text. 用户要拿到一条 B 站视频的字幕文字(BV 号、bilibili.com/video 链接、b23.tv 短链或整段分享文字),用来复制、翻译、做字幕稿或交给 AI 继续处理时使用。视频有 UP 主字幕就用字幕,没有就做语音识别,每段带开始时间。只读口播,最省钱:每开始 2 分钟 1 积分,不收基础积分。不登录 B 站、不要 Cookie、不下载视频;读不了不扣费。需要 LinkDigest API Key(注册送 10 积分,不用绑卡)。
- Reads credentials
In this repository40 other files it gives its agents.
- bilibili-course-notesSkill
- bilibili-video-summarySkill
- bilibili-video-to-textSkill
- douyin-batch-to-textSkill
- douyin-creator-cardSkill
- douyin-search-to-textSkill
- douyin-subtitle-textSkill
- douyin-video-summarySkill
- douyin-video-to-textSkill
- hongguo-drama-researchSkill
- instagram-to-textSkill
- linkdigest-script-rewriteSkill
- linkdigestSkill
- linkdigest-video-transcriptSkill
- linkdigest-viral-breakdownSkill
- linkdigest-wechat-article-readerSkill
- linkdigest-xhs-note-ocrSkill
- linkdigest-xiaohongshu-douyin-readerSkill
- linkdigest-youtube-summarySkill
- long-video-transcriptSkill
- overseas-pain-pointsSkill
- podcast-to-textSkill
- tiktok-transcriptSkill
- toutiao-to-textSkill
- twitter-to-textSkill
- video-to-articleSkill
- video-to-mindmapSkill
- video-to-notesSkill
- video-transcript-translateSkill
- viral-video-remakeSkill
- weibo-to-textSkill
- xiaohongshu-batch-exportSkill
- xiaohongshu-consumer-insightSkill
- xiaohongshu-daily-draftSkill
- xiaohongshu-douyin-compareSkill
- xiaohongshu-douyin-last-30-daysSkill
- xiaohongshu-note-summarySkill
- xiaohongshu-note-to-textSkill
- xiaohongshu-pain-point-radarSkill
- xiaohongshu-search-to-textSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Use it when the user wants the words: to copy, translate, check a quote, or feed another model.
- Distinctive: line 31
Don't use it for:
- Very specific: line 32
Notes or a summary: Use bilibili-video-to-text (key points, on-screen text) or bilibili-course-notes for lectures.
- Very specific: line 63
Only the link leaves the machine.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
B站字幕提取 · Bilibili subtitles → text
A plain request to a Bilibili video page from a server gets HTTP 412, and most subtitle tools need your Bilibili cookie. This skill sends only the link to LinkDigest and gets the spoken words back as text.
Quick start
export LINKDIGEST_API_KEY=ld_live_... # https://linkdigest.dev/signin?ref=skill-bilibili-subtitle-text&next=/app/keys
python3 {baseDir}/scripts/linkdigest.py --depth script "https://www.bilibili.com/video/BV1FtHg6nEE2/"--depth script is what makes this the subtitle job: only the spoken words are read, no frames, no summary. (A link someone already read in full comes back as that full read, at 0 credits.) A link, a b23.tv short link or the whole share text all work. Add --format json for segments as data, --max-credits 10 to refuse anything longer than that budget, uncharged.
Use it when / don't
Use it when the user wants the words: to copy, translate, check a quote, or feed another model.
Don't use it for:
- Notes or a summary. Use
bilibili-video-to-text(key points, on-screen text) orbilibili-course-notesfor lectures. - A ready .srt file. Times are per segment (start only), not per sentence. Say so if the user asks for SRT.
What the text is
- Source: the uploader's own subtitles when the video has them; otherwise speech recognition. The read says which (
transcript_source;asr= recognition, shown as_source: ASR_in Markdown). - Times: each segment carries its start time,
`mm:ss`in Markdown,tin seconds in JSON (transcript: [{t, text}]). - Accuracy: recognition can misspell names, numbers and jargon. Tell the user to check those before quoting.
Price
| Video length | Credits |
| up to 2 min | 1 |
| 10 min | 5 |
| 60 min | 30 |
A link someone already read costs 0. Top-ups are one-time and never expire: 50 credits ¥9.9 (支付宝) / $1.50, 250 credits ¥36 / $5. The cost of each run is printed on the last stderr line.
When it cannot read
| Answer | Meaning | Charged |
422 | Deleted, hidden, under review, members-only or region-locked; Bilibili's reason is quoted | no |
503 | Bilibili refused this read; try again later | no |
402 | Longer than the plan reads, or not enough credits; the reply says which and where to top up | no |
Live rooms, paid 番剧 and comments are not read.
Privacy
Only the link leaves the machine. No Bilibili account, cookie or login is used. The media is deleted after the read. https://linkdigest.dev/privacy · Remote MCP: https://linkdigest.dev/mcp (tool digest_url) · support@linkdigest.dev
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

