Agent skill
youtube-transcript-fetcher
Extract and download YouTube video transcripts and subtitles for content analysis and accessibility
Install this agent skill to your Project
npx add-skill https://github.com/ljchg12-hue/dotfiles/tree/main/skills/youtube-transcript-fetcher
SKILL.md
YouTube Transcript Fetcher Skill
Extract transcripts and captions from YouTube videos.
When to Use
- Content analysis
- Translation
- Accessibility
- Research documentation
Core Capabilities
- Auto-generated transcript extraction
- Manual caption download
- Multiple language support
- Timestamp preservation
- Format conversion (SRT, TXT, JSON)
Tools
# youtube-transcript-api (Python)
pip install youtube-transcript-api
youtube_transcript_api VIDEO_ID
# yt-dlp with subtitles
yt-dlp --write-auto-sub --skip-download VIDEO_URL
# youtube-dl
youtube-dl --write-sub --sub-lang en --skip-download VIDEO_URL
Python Example
from youtube_transcript_api import YouTubeTranscriptApi
video_id = "dQw4w9WgXcQ"
transcript = YouTubeTranscriptApi.get_transcript(video_id)
for entry in transcript:
print(f"[{entry['start']:.2f}s] {entry['text']}")
Best Practices
- Check caption availability first
- Prefer manual captions over auto-generated
- Preserve timestamps for reference
- Verify accuracy for critical content
- Respect copyright
Resources
- youtube-transcript-api: https://github.com/jdepoix/youtube-transcript-api
- yt-dlp: https://github.com/yt-dlp/yt-dlp
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
random-selection
Randomly select items from lists using various algorithms for fair and unbiased selection
threat-hunting
Proactive threat detection using Sigma rules, IOCs, and behavioral analytics
auth-implementation-patterns
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
debugging-strategies
Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.
sql-optimization-patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
monorepo-management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.
Didn't find tool you were looking for?