youtube-transcript

Download YouTube video transcripts and subtitles using yt-dlp with Whisper fallback.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/Barbaros911/As-mine --skill youtube-transcript-barbaros911
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: youtube-transcript
Source: https://github.com/Barbaros911/As-mine/tree/main/.claude/skills/youtube-transcript
Command: npx skills add https://github.com/Barbaros911/As-mine --skill youtube-transcript-barbaros911

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yt-dlp, openai-whisper.

What problem does it solve? Getting the text content of a YouTube video normally requires manual transcription or copying captions by hand. This Skill automates downloading subtitles or transcripts from any YouTube URL, handling tool installation, format conversion, and cleanup. ## Core Features & Use Cases - Subtitle Download: Fetches manual or auto-generated subtitles via yt-dlp, checking availability first with --list-subs. - Whisper Fallback: Transcribes audio with OpenAI Whisper when no subtitles exist, with user confirmation before large downloads. - Plain Text Conversion: Deduplicates overlapping VTT caption lines and outputs clean, readable text files named after the video title. - Use Case: A researcher needs the spoken content of a 45-minute conference talk on YouTube for citation. Provide the URL and receive a deduplicated plain-text transcript saved locally. ## Quick Start Download the transcript from this YouTube video and save it as plain text: https://www.youtube.com/watch?v=VIDEO_ID

Frequently Asked Questions about youtube-transcript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download a transcript from a YouTube video?▼

Use yt-dlp with --write-sub for manual subtitles or --write-auto-sub for auto-generated captions, combined with --skip-download to get only the subtitle file. The result is a .vtt file that can be converted to plain text.

How to convert YouTube VTT subtitles to plain text?▼

Parse the VTT file with a Python script that strips WEBVTT headers, timestamp lines, and HTML tags, then deduplicates repeated caption lines. Auto-generated YouTube captions overlap progressively, so deduplication is required for readable output.

What if a YouTube video has no subtitles available?▼

Download the audio track with yt-dlp -x --audio-format mp3 and transcribe it locally using OpenAI Whisper with the base model. Confirm the audio file size with the user before downloading, since Whisper models require 1-3GB of disk space.

Does yt-dlp work on private or age-restricted YouTube videos?▼

No, yt-dlp cannot access private videos and may fail on age-restricted or geo-blocked content without authentication. The tool reports the specific error, which should be relayed to the user.

Why does yt-dlp fail with SSL or download errors?▼

Failures usually stem from network issues, insufficient disk space, or certificate problems. Retry with --no-check-certificate for SSL issues and verify the URL format matches https://www.youtube.com/watch?v=VIDEO_ID.