π¦ ClawHub
YouTube Media Downloader
by @xanderrey
Download audio (MP3) and video (MP4) files from YouTube URLs. Use when users want to convert YouTube videos to files, extract music/songs, download videos fo...
TERMINAL
clawhub install youtube-media-downloaderπ About This Skill
name: youtube-downloader description: Download audio (MP3) and video (MP4) files from YouTube URLs. Use when users want to convert YouTube videos to files, extract music/songs, download videos for offline viewing, save educational content, or process playlists. Handles single videos, playlists, and batch downloads with quality options.
YouTube Media Downloader
Download high-quality audio and video files from YouTube for offline use, music conversion, and content archiving.
Overview
This skill provides comprehensive YouTube downloading capabilities with quality control, batch processing, and format options. Perfect for music extraction, video archiving, educational content, and playlist processing.
Quick Start
Single Video/Audio
# Download as MP3 (default)
scripts/download_media.sh "https://www.youtube.com/watch?v=VIDEO_ID"Download as MP4 video
scripts/download_media.sh -v "https://www.youtube.com/watch?v=VIDEO_ID"Custom filename and directory
scripts/download_media.sh -o ~/Downloads "https://www.youtube.com/watch?v=VIDEO_ID" "my_song"
Playlist/Batch Download
# Entire playlist as MP3
scripts/batch_download.sh "https://www.youtube.com/playlist?list=PLAYLIST_ID"Playlist items 5-10 as 720p video
scripts/batch_download.sh -v -q 720p -s 5 -e 10 "PLAYLIST_URL"From file list of URLs
scripts/batch_download.sh -f urls.txt
Core Capabilities
Audio Extraction
Video Download
-v/--video flagBatch Processing
Quality Selection Guide
Audio (MP3)
Video Quality Options
Advanced Usage
Organization Options
# Specific output directory
-o ~/Downloads/MusicDate-based folders
-o ~/Downloads/$(date +%Y-%m-%d)
Playlist Range Control
# Specific range (items 10-20)
-s 10 -e 20From specific item to end
-s 25Limit total downloads
-m 50
File Input Processing
Createurls.txt with one URL per line:
https://www.youtube.com/watch?v=video1
https://www.youtube.com/watch?v=video2
Then: batch_download.sh -f urls.txtScript Reference
download_media.sh
Purpose: Single video/audio downloads Key flags:-a/--audio: MP3 extraction (default)-v/--video: MP4 video download-q/--quality: Quality selection-o/--output: Output directorybatch_download.sh
Purpose: Playlist and bulk downloads Key flags:-s/--start, -e/--end: Range selection-m/--max-downloads: Limit downloads-f/--file: Process URL fileBest Practices & Patterns
For detailed usage patterns, quality guidelines, and troubleshooting, see download-patterns.md.
Technical Notes
Legal & Ethical Use
π‘ Examples
Single Video/Audio
# Download as MP3 (default)
scripts/download_media.sh "https://www.youtube.com/watch?v=VIDEO_ID"Download as MP4 video
scripts/download_media.sh -v "https://www.youtube.com/watch?v=VIDEO_ID"Custom filename and directory
scripts/download_media.sh -o ~/Downloads "https://www.youtube.com/watch?v=VIDEO_ID" "my_song"
Playlist/Batch Download
# Entire playlist as MP3
scripts/batch_download.sh "https://www.youtube.com/playlist?list=PLAYLIST_ID"Playlist items 5-10 as 720p video
scripts/batch_download.sh -v -q 720p -s 5 -e 10 "PLAYLIST_URL"From file list of URLs
scripts/batch_download.sh -f urls.txt