Extract Youtube Captions
Fetch manual or automatic captions from a YouTube URL with yt-dlp, normalize them into a safe text file, and preserve language and provenance. Use when the user requests captions or a transcript, not audio transcription.
Runs on
Scope
$npx @youdede/toolkit add extract-youtube-captions --target claude-code
What it does
Extract available YouTube captions into clean text without downloading media.
When it fires
- discovery
How it behaves
Normalize structured YouTube json3 captions into entity-decoded plain text without repeated rolling-caption overlap.
It does not bypass access controls, geographic restrictions, or authentication challenges.
It does not download video or audio when captions are the request.
It does not present automatic captions as an authoritative verbatim record.
Configuration
scripts/normalize-json3.mjs
- Version
- 1.3.0
- Requires
- node
- Licence
- RiskIt fetches captions from YouTube and writes local output, with network and downloaded-content exposure.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic and prompt
- Behaviour
- Advises, never blocks
- On failure
- Stops and reports
- LatencyThe skill extracts available YouTube captions into clean text without downloading media, using sequential evidence and verification steps.
- Bounded
- Data retentionWhether data remains after use and who manages its storage.
- Managed by the runtime
Often used with
All in Research