Loading...
Loading...
Download YouTube video transcripts (subtitles/captions) using yt-dlp. Use this skill whenever the user provides a YouTube URL and wants the transcript, asks to "download transcript", "get captions/subtitles", or "transcribe a YouTube video". Also triggers when user needs text content extracted from any YouTube video, even if they don't explicitly say "transcript" (e.g., "what does this video say", "get me the text from this video", "I need the content of this YouTube link").
npx skill4agent add hoangvantuan/claude-plugin youtube-transcriptcommand -v yt-dlpbrew install yt-dlpsudo apt install -y yt-dlppip3 install yt-dlpVIDEO_URL="THE_URL"
yt-dlp --print "%(title)s" "$VIDEO_URL"
yt-dlp --list-subs "$VIDEO_URL"yt-dlp --write-sub --skip-download --output "transcript_temp" "$VIDEO_URL"yt-dlp --write-auto-sub --skip-download --output "transcript_temp" "$VIDEO_URL".vttVIDEO_TITLE=$(yt-dlp --print "%(title)s" "$VIDEO_URL" | tr '/' '_' | tr ':' '-' | tr '?' '' | tr '"' '')
VTT_FILE=$(ls transcript_temp*.vtt 2>/dev/null | head -n 1)
python3 skills/youtube-transcript/scripts/vtt-to-txt.py "$VTT_FILE" "${VIDEO_TITLE}.txt"rm "$VTT_FILE"yt-dlp --write-auto-sub --sub-langs vi --skip-download --output "transcript_temp" "$VIDEO_URL"envijakoreferences/error-handling.md