简介
一键提取 YouTube 视频字幕,自动清洗为可读文本,支持多语言和人工/自动生成字幕切换。
原始描述
Download and generate clean, readable transcripts from any YouTube video. Extracts subtitles (auto-generated or manual), removes timestamps and formatting, a...
通过你的 Agent 添加
安装目录:youtube-transcript-generator/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: youtube-transcript-generator
description: Download and generate clean, readable transcripts from any YouTube video. Extracts subtitles (auto-generated or manual), removes timestamps and formatting, and outputs a clean paragraph-style transcript. Use when asked to transcribe, get transcript, or extract text from a YouTube video.
YouTube Transcript Generator
Download clean transcripts from any YouTube video URL.
Requirements
yt-dlp must be installed (brew install yt-dlp or pip install yt-dlp)
Usage
yt-dlp must be installed (brew install yt-dlp or pip install yt-dlp)Run the bundled script with a YouTube URL:
bash scripts/get_transcript.sh "https://www.youtube.com/watch?v=VIDEO_ID"
The script will:
- Try to download English manual subtitles first
- Fall back to auto-generated English subtitles
- Try all available languages if English is unavailable
- Clean the raw subtitle file into readable paragraphs
- Output the transcript to stdout and save to
transcript_VIDEO_ID.txt
Options
# Save to a specific file
bash scripts/get_transcript.sh "URL" output.txt
# Get transcript WITH timestamps (default: without)
bash scripts/get_transcript.sh "URL" output.txt en timestamps
# Get transcript in a specific language
bash scripts/get_transcript.sh "URL" output.txt fr
How It Works
yt-dlp downloads the subtitle track (VTT/SRT format)
- The script strips HTML tags and duplicate lines
- Without timestamps (default): merges into clean, readable paragraphs
- With timestamps: preserves
[HH:MM:SS] markers before each line for easy reference
Example Output
# Save to a specific file
bash scripts/get_transcript.sh "URL" output.txt
# Get transcript WITH timestamps (default: without)
bash scripts/get_transcript.sh "URL" output.txt en timestamps
# Get transcript in a specific language
bash scripts/get_transcript.sh "URL" output.txt fr
yt-dlpdownloads the subtitle track (VTT/SRT format)- The script strips HTML tags and duplicate lines
- Without timestamps (default): merges into clean, readable paragraphs
- With timestamps: preserves
[HH:MM:SS]markers before each line for easy reference
Example Output
Input: https://www.youtube.com/watch?v=HMTxOecbyPg
Output:
How OpenClaw Runs My Entire Business. I record a podcast episode and that is
literally the only thing I do. Everything else is handled by 13 AI agents
running on a Mac Mini in my office...
Troubleshooting
- No subtitles found: Not all videos have subtitles. The script will report which languages are available.
- yt-dlp not found: Install with
brew install yt-dlp (macOS) or pip install yt-dlp.
- Rate limited: Wait a moment and retry. YouTube occasionally throttles subtitle requests.
Links
- Full guides and templates: OpenClaw Lab
- Free OpenClaw installer: installopenclawnow.com
- Community: OpenClaw Lab on Skool
brew install yt-dlp (macOS) or pip install yt-dlp.- Full guides and templates: OpenClaw Lab
- Free OpenClaw installer: installopenclawnow.com
- Community: OpenClaw Lab on Skool
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。