youtube-downloader
Original:🇺🇸 English
Not Translated
1 scriptsChecked / no sensitive code detected
Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.
1installs
Added on
NPX Install
npx skill4agent add aaaaqwq/claude-code-skills youtube-downloaderSKILL.md Content
YouTube Video Downloader
Download YouTube videos with full control over quality and format settings.
Quick Start
The simplest way to download a video:
bash
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID"This downloads the video in best available quality as MP4 to .
/mnt/user-data/outputs/Options
Quality Settings
Use or to specify video quality:
-q--quality- (default): Highest quality available
best - : Full HD
1080p - : HD
720p - : Standard definition
480p - : Lower quality
360p - : Lowest quality available
worst
Example:
bash
python scripts/download_video.py "URL" -q 720pFormat Options
Use or to specify output format (video downloads only):
-f--format- (default): Most compatible
mp4 - : Modern format
webm - : Matroska container
mkv
Example:
bash
python scripts/download_video.py "URL" -f webmAudio Only
Use or to download only audio as MP3:
-a--audio-onlybash
python scripts/download_video.py "URL" -aCustom Output Directory
Use or to specify a different output directory:
-o--outputbash
python scripts/download_video.py "URL" -o /path/to/directoryComplete Examples
- Download video in 1080p as MP4:
bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 1080p- Download audio only as MP3:
bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -a- Download in 720p as WebM to custom directory:
bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 720p -f webm -o /custom/pathHow It Works
The skill uses , a robust YouTube downloader that:
yt-dlp- Automatically installs itself if not present
- Fetches video information before downloading
- Selects the best available streams matching your criteria
- Merges video and audio streams when needed
- Supports a wide range of YouTube video formats
Important Notes
- Downloads are saved to by default
/mnt/user-data/outputs/ - Video filename is automatically generated from the video title
- The script handles installation of yt-dlp automatically
- Only single videos are downloaded (playlists are skipped by default)
- Higher quality videos may take longer to download and use more disk space