YouTube Watcher
clawhubMedia Download Easy
3.7
Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
clawhub install youtube-watcherYoutube Summarizer๏ผ่ชๅจ็ๆ YouTube ่ง้ข็ๆๅญๆ่ฆๅๅ ๅฎนๆป็ปใ
# Install Skill npx skills add sickn33/antigravity-awesome-skills@youtube-summarizer # Claude Code will auto-detect and use it after installation
# Same install command โ works with all SKILL.md-compatible AI coding tools npx skills add sickn33/antigravity-awesome-skills@youtube-summarizer
youtube-transcript-api Python library, and produces detailed documentation capturing all insights, arguments, and key points.# Check if youtube-transcript-api is installed
python3 -c "import youtube_transcript_api" 2>/dev/null
if [ $? -ne 0 ]; then
echo "โ ๏ธ youtube-transcript-api not found"
# Offer to install
fi
# Check Python availability
if ! command -v python3 &>/dev/null; then
echo "โ Python 3 is required but not installed"
exit 1
fi
youtube-transcript-api is required but not installed.
Would you like to install it now?
- [ ] Yes - Install with pip (pip install youtube-transcript-api)
- [ ] No - I'll install it manually
pip install youtube-transcript-api
python3 -c "import youtube_transcript_api; print('โ
youtube-transcript-api installed successfully')"
echo "[โโโโโโโโโโโโโโโโโโโโ] 20% - Step 1/5: Validating URL"
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐น YOUTUBE SUMMARIZER - Processing Video โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ โ Step 1: Validating URL [IN PROGRESS] โ
โ โ Step 2: Checking Availability โ
โ โ Step 3: Extracting Transcript โ
โ โ Step 4: Generating Summary โ
โ โ Step 5: Formatting Output โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ Progress: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 20% โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://m.youtube.com/watch?v=VIDEO_ID# Extract video ID using regex or URL parsing
URL="$USER_PROVIDED_URL"
# Pattern 1: youtube.com/watch?v=VIDEO_ID
if echo "$URL" | grep -qE 'youtube\.com/watch\?v='; then
VIDEO_ID=$(echo "$URL" | sed -E 's/.*[?&]v=([^&]+).*/\1/')
# Pattern 2: youtu.be/VIDEO_ID
elif echo "$URL" | grep -qE 'youtu\.be/'; then
VIDEO_ID=$(echo "$URL" | sed -E 's/.*youtu\.be\/([^?]+).*/\1/')
else
echo "โ Invalid YouTube URL format"
exit 1
fi
echo "๐น Video ID extracted: $VIDEO_ID"
โ Invalid YouTube URL
Please provide a valid YouTube URL in one of these formats:
- https://www.youtube.com/watch?v=VIDEO_ID
- https://youtu.be/VIDEO_ID
Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ
echo "[โโโโโโโโโโโโโโโโโโโโ] 40% - Step 2/5: Checking Availability"
from youtube_transcript_api import YouTubeTranscriptApi, TranscriptsDisabled, NoTranscriptFound
import sys
video_id = sys.argv[1]
try:
# Get list of available transcripts
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
print(f"โ
Video accessible: {video_id}")
print("๐ Available transcripts:")
for transcript in transcript_list:
print(f" - {transcript.language} ({transcript.language_code})")
if transcript.is_generated:
print(" [Auto-generated]")
except TranscriptsDisabled:
print(f"โ Transcripts are disabled for video {video_id}")
sys.exit(1)
except NoTranscriptFound:
print(f"โ No transcript found for video {video_id}")
sys.exit(1)
except Exception as e:
print(f"โ Error accessing video: {e}")
sys.exit(1)
echo "[โโโโโโโโโโโโโโโโโโโโ] 60% - Step 3/5: Extracting Transcript"
from youtube_transcript_api import YouTubeTranscriptApi
video_id = "VIDEO_ID"
try:
# Try to get transcript in user's preferred language first
# Fall back to English if not available
transcript = YouTubeTranscriptApi.get_transcript(
video_id,
languages=['pt', 'en'] # Prefer Portuguese, fallback to English
)
# Combine transcript segments into full text
full_text = " ".join([entry['text'] for entry in transcript])
# Get video metadata
from youtube_transcript_api import YouTubeTranscriptApi
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
print("โ
Transcript extracted successfully")
print(f"๐ Transcript length: {len(full_text)} characters")
# Save to temporary file for processing
with open(f"/tmp/transcript_{video_id}.txt", "w") as f:
f.write(full_text)
except Exception as e:
print(f"โ Error extracting transcript: {e}")
exit(1)
echo "[โโโโโโโโโโโโโโโโโโโโ] 80% - Step 4/5: Generating Summary"
# Use the transcript file as input to the AI prompt
TRANSCRIPT_FILE="/tmp/transcript_${VIDEO_ID}.txt"
# The AI agent will:
# 1. Read the transcript
# 2. Apply the STAR + R-I-S-E summarization framework
# 3. Generate comprehensive Markdown output
# 4. Structure with headers, lists, and highlights
Read "$TRANSCRIPT_FILE" # Read transcript into context
echo "[โโโโโโโโโโโโโโโโโโโโ] 100% - Step 5/5: Formatting Output"
# [Video Title]
Canal: [Channel Name]
Duraรงรฃo: [Duration]
URL: [https://youtube.com/watch?v=VIDEO_ID]
Data de Publicaรงรฃo: [Date if available]
๐ Detailed Summary
[Topic 1]
[Comprehensive explanation with examples, data, quotes...]
#### [Subtopic 1.1]
[Detailed breakdown...]
[Topic 2]
[Continued detailed analysis...]
๐ Concepts and Terminology
- [Term 1]: [Definition and context]
- [Term 2]: [Definition and context]
๐ Conclusion
[Final synthesis and takeaways]
Example 2: Missing Dependency
User Input:
claude> summarize this youtube video https://youtu.be/abc123
Skill Response:
โ ๏ธ youtube-transcript-api not installed
User selects "Yes":
bash
$ pip install youtube-transcript-api
Successfully installed youtube-transcript-api-0.6.1
Example 4: Invalid URL
User Input:
claude> summarize youtube video www.youtube.com/some-video
Skill Response:
โ Invalid YouTube URL format
๐ Executive Summary
This video provides a comprehensive introduction to the fundamental concepts of Artificial Intelligence (AI), designed for beginners and professionals who want to understand the technical foundations and practical applications of modern AI. The instructor covers everything from basic definitions to machine learning algorithms, using practical examples and visualizations to facilitate understanding.
[... continued detailed summary ...]
What would you like to save?
โ Summary + raw transcript
โ
File saved: resumo-exemplo123-2026-02-01.md (includes raw transcript)
[โโโโโโโโโโโโโโโโโโโโ] 100% - โ Processing complete!
npx skills add sickn33/antigravity-awesome-skills@youtube-summarizer && youtube-summarizer 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
clawhub install youtube-watcher