transcribe-youtube-videos
Installation
SKILL.md
Transcribe YouTube Videos
Fetch transcripts from any YouTube video. No API key required.
When to Activate
- User shares a YouTube URL and wants to discuss its content
- User asks "what did they say about X in this video?"
- User references a video and needs the transcript
- User wants to summarize, quote, or analyze video content
Workflow
Step 1: Extract Video ID
Parse the YouTube URL to extract the video ID. Handle these formats:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDVIDEO_ID(direct ID)
Step 2: Fetch Transcript
Run this Python script via Bash:
python3 -c "
from youtube_transcript_api import YouTubeTranscriptApi
api = YouTubeTranscriptApi()
transcript = api.fetch('VIDEO_ID')
for entry in transcript:
print(entry.text)
"
Replace VIDEO_ID with the extracted ID.
Step 3: Format Output
Present the transcript with:
- A header indicating the video URL
- The full transcript text (without timestamps for readability)
- Optionally offer to save to a file if it's long
Error Handling
If the transcript fetch fails:
- Check if the video has captions enabled
- Try fetching auto-generated captions with language fallback:
python3 -c "
from youtube_transcript_api import YouTubeTranscriptApi
api = YouTubeTranscriptApi()
transcript_list = api.list(video_id='VIDEO_ID')
print('Available transcripts:')
for t in transcript_list:
print(f' - {t.language} ({t.language_code})')
"
Dependencies
Requires youtube-transcript-api Python package:
pip3 install youtube-transcript-api
If not installed, offer to install it for the user.
Related skills
More from mikeygonz/skills
read-x
Read X/Twitter posts and articles — no API key, no auth, no browser needed. Uses FxTwitter API to fetch full tweet content, media, engagement stats, and long-form articles.
56watch-youtube
Watch and analyze YouTube videos using Gemini's video understanding API. Pass any YouTube URL to get summaries, timestamps, Q&A, or detailed analysis of video content — audio and visual.
48linear
|
7deploy-preview
|
7vault
|
2