download-transcripts

Download YouTube transcripts for videos tracked in a CSV file. Use when you need to download transcripts in bulk with progress tracking, fetching transcripts overnight, processing video libraries, or when the user mentions "get transcripts", "download captions", or "bulk transcript download".

$ 설치

git clone https://github.com/dparedesi/YTScribe /tmp/YTScribe && cp -r /tmp/YTScribe/.agent/skills/download-transcripts ~/.claude/skills/YTScribe

// tip: Run this command in your terminal to install the skill


name: download-transcripts description: Download YouTube transcripts for videos tracked in a CSV file. Use when you need to download transcripts in bulk with progress tracking, fetching transcripts overnight, processing video libraries, or when the user mentions "get transcripts", "download captions", or "bulk transcript download".

Download Transcripts from CSV

Why? Manually downloading transcripts one-by-one is tedious and error-prone. This skill automates bulk transcript downloads with rate limiting, progress tracking, and resume capability.

Quick Start

# Standard usage (recommended)
transcript-download --csv data/channel-name/videos.csv --output-dir data/channel-name/transcripts

# Single video
transcript-download https://www.youtube.com/watch?v=VIDEO_ID --output transcript.md

Workflow

1. Verify Prerequisites

Ensure you have a CSV file with video URLs:

  • Created by extract-videos skill, OR
  • Manually curated with video_url column
# Check CSV exists and has videos
head -5 data/channel-name/videos.csv

[!TIP] If you don't have a CSV yet, run extract-videos first to build your video list from a YouTube channel.

2. Run Download Command

transcript-download \
  --csv data/<folder-name>/videos.csv \
  --output-dir data/<folder-name>/transcripts \
  --delay 60
OptionDescriptionDefaultNotes
--csvInput CSV file with video URLsRequiredMust have video_url column
--output-dirDirectory for transcript filesoutputsCreated if missing
--delaySeconds between requests60Minimum 30, recommended 60+
--languages, -lLanguage codes to tryen en-US en-GBIn priority order
--verbose, -vEnable verbose outputFalseShows download progress

[!CAUTION] NEVER set --delay below 30 seconds. YouTube will block your IP if you make requests too quickly. The default of 60 seconds exists for a reason. You WILL get banned and may wait hours before downloading again.

3. Validate Downloads

After the command completes:

# Check how many transcripts downloaded
ls -la data/<folder-name>/transcripts/*.md | wc -l

# Verify CSV status updated
grep -c "True" data/<folder-name>/videos.csv

The command automatically:

  • Downloads transcripts as markdown with YAML frontmatter
  • Updates CSV transcript_downloaded column with True/False
  • Skips already-downloaded videos on re-run

Output Format

Transcripts are saved as markdown with YAML frontmatter:

---
video_id: dQw4w9WgXcQ
video_url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
title: Building Resilient Microservices at Scale
author: Jane Smith
published_date: 2025-03-15
length_minutes: 42.5
views: 15234
---

[00:00] Welcome to today's talk on building resilient microservices...
[00:15] We'll cover three main topics: circuit breakers, retry patterns...

Examples

Overnight Batch Processing

# Large channel - run overnight with safe delay
transcript-download \
  --csv data/aws-reinvent-2025/videos.csv \
  --output-dir data/aws-reinvent-2025/transcripts \
  --delay 90 \
  --verbose

Conference Playlist

# Smaller collection - minimum safe delay
transcript-download \
  --csv data/pycon-2024/videos.csv \
  --output-dir data/pycon-2024/transcripts \
  --delay 30

Non-English Content

# Spanish content with fallback to auto-generated
transcript-download \
  --csv data/spanish-tech/videos.csv \
  --output-dir data/spanish-tech/transcripts \
  --languages es es-MX es-ES auto

Single Video Mode

# Quick single transcript
transcript-download https://www.youtube.com/watch?v=dQw4w9WgXcQ --output talk.md

Troubleshooting

ProblemCauseSolution
"No transcript found"Video lacks captions in specified languagesTry --languages en en-US auto to include auto-generated captions
IP blocked / 403 errorsToo many requests too quicklyWait 30-60 minutes, then retry with --delay 120
Script interrupted mid-runNetwork issue or Ctrl+CRe-run the exact same command; it skips completed videos
Empty transcript filesAuto-captions unavailable or video is liveCheck if video has captions on YouTube; skip if not
"CSV file not found"Wrong path or file doesn't existVerify path with ls data/<folder-name>/videos.csv
Slow downloadsRate limiting working correctlyThis is expected; 100 videos at 60s delay = ~2 hours

Common Mistakes

  1. Reducing delay to "speed up" - Do not set delay below 30 seconds. You will get IP banned. Use overnight runs for large batches.

  2. Running without checking CSV first - Always verify your CSV exists and has videos before running. Empty CSVs waste time.

  3. Not using resume capability - If interrupted, don't start over. Re-run the same command to resume from where you left off.

  4. Wrong language codes - Language codes are specific (e.g., en-US not english). Check YouTube's language for the video.

  5. Forgetting auto in languages - Many videos only have auto-generated captions. Add auto to your language list as a fallback.


Quality Checklist

Before running:

  • CSV file exists and has video_url column
  • Output directory path is correct
  • Delay is 30+ seconds (60+ recommended)
  • Sufficient time allocated (1 min per video minimum)

After running:

  • Transcript count matches expected videos
  • CSV transcript_downloaded column updated
  • Spot-check 2-3 transcripts for valid content
  • No empty or malformed markdown files