baoyu-youtube-transcript
仓库创建 2026年1月13日最近提交 22 天前SkillHot 收录 20 天前
▸ 精选理由
直接调用 InnerTube/yt-dlp 自动回退,能快速获取并缓存多语种字幕供重格式化使用。
▸ 风险提示
会访问外部 YouTube 接口并可能下载受版权保护内容,需注意合规与依赖工具。
这个 Skill 做什么
通过 URL/视频ID 下载 YouTube 字幕、章节、封面与说话人信息并支持翻译。
根据 YouTube 的 URL 或视频 ID 把字幕、章节、封面和说话人信息抓下来,支持多语言和翻译,输出可编辑的 transcript。需要导出字幕、拿封面图或做自动翻译时用,不依赖额外 API key。内部会缓存原始数据并在被屏蔽时回退到 yt-dlp,方便二次格式化。
▸ 展开 SKILL.md 英文原文
Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面", "视频封面", "video thumbnail", "video cover image", or provides a YouTube URL and wants the transcript/subtitle text or cover image extracted.
2.4w
Stars
2.7k
Forks
22
仓库内 Skill
+1.0k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/JimLiu/baoyu-skills/main/skills/baoyu-youtube-transcript/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/JimLiu/baoyu-skills/main/skills/baoyu-youtube-transcript/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# YouTube Transcript
Downloads transcripts (subtitles/captions) from YouTube videos. Works with both manually created and auto-generated transcripts. No API key or browser required — uses YouTube's InnerTube API directly and automatically falls back to `yt-dlp` when YouTube blocks the direct API path.
Fetches video metadata and cover image on first run, caches raw data for fast re-formatting.
## Script Directory
Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.
| Script | Purpose |
|via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有