← 返回
内容创作 中文

YouTube Transcript Generator

Download and generate clean, readable transcripts from any YouTube video. Extracts subtitles (auto-generated or manual), removes timestamps and formatting, a...
下载并生成任意YouTube视频的清晰可读文字稿,提取字幕(自动或手动),去除时间戳和格式,...
floriandarroman
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 826
下载
💾 19
安装
1
版本
#latest

概述

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

Run the bundled script with a YouTube URL:

bash scripts/get_transcript.sh "https://www.youtube.com/watch?v=VIDEO_ID"

The script will:

  1. Try to download English manual subtitles first
  2. Fall back to auto-generated English subtitles
  3. Try all available languages if English is unavailable
  4. Clean the raw subtitle file into readable paragraphs
  5. 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

  1. yt-dlp downloads the subtitle track (VTT/SRT format)
  2. The script strips HTML tags and duplicate lines
  3. Without timestamps (default): merges into clean, readable paragraphs
  4. 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 02:49 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,254
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 141 📥 41,016
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,401