youtube-transcript
YouTube Transcript Skill
When to Use
- Retrieve transcripts for YouTube videos (when available)
- Extract text content from videos for analysis or summarization
Prerequisites
Python Dependencies:
- The script uses
uvxto run with yt-dlp dependency automatically
Procedure
Extract Transcript from YouTube Video
Use the script to extract transcript for a specific YouTube video:
./scripts/extract.py VIDEO_ID_OR_URL [--language LANG] [--info]
Examples
Get transcript for a specific video:
./scripts/extract.py dQw4w9WgXcQ
Get transcript from a YouTube URL:
./scripts/extract.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Get transcript in Spanish:
./scripts/extract.py dQw4w9WgXcQ --language es
Get video info along with transcript:
./scripts/extract.py dQw4w9WgXcQ --info
Get raw VTT transcript:
./scripts/extract.py dQw4w9WgXcQ --raw
Output Format
The script outputs cleaned transcript text by default.
With --info, it also outputs video metadata.
With --raw, it outputs the raw VTT transcript.
Notes
- Transcripts are only available for videos that have captions enabled
- Some videos may not have transcripts available in the requested language
- For best results, provide video ID or full YouTube URL
More from varlabz/skills
searxng-search
Search the web using a local SearXNG instance. Use for web searches, finding current information, researching topics, checking news, looking up documentation, or finding recent events. Supports categories: general, news, images, videos, it, science, social media.
24convert-to-markdown
Use when converting files or web content to Markdown. Supports extracting YouTube video transcripts (requires URL or video ID) and converting MHTML files/web pages into Markdown for easier reading and processing.
23