yt-dlp. Use when the user wants to download, extract audio, pull subtitles, clip, or archive a YouTube or other streaming-site URL, or when yt-dlp hits 403, bot-check, or only-360p. Not for local-file edit/transcode, watch/summarize without saving, search, or generic downloads.
设计与多媒体
YouTube Download
试用Download YouTube videos, playlists, audio, thumbnails, metadata, and subtitles with yt-dlp. Use when you need to fetch media from YouTube URLs, choose video/...
它能做什么
Download YouTube videos, playlists, audio, thumbnails, metadata, and subtitles with yt-dlp. Use when you need to fetch media from YouTube URLs, choose video/...
技能文档
YouTube Download
Overview
Use yt-dlp for all YouTube downloads on Linux, macOS, and Windows. Before downloading, ensure yt-dlp exists and update it to the newest available version when possible.
Prefer the bundled helper. Resolve `` to this skill folder and use the available Python command for the current platform:
python3 youtube-download/scripts/youtube_download.py "https://www.youtube.com/watch?v=VIDEO_ID"
Use python3 on most Linux/macOS systems. Use py -3 or python on Windows when that is the configured Python launcher.
The helper checks for yt-dlp, installs it with -m pip install --user -U yt-dlp if missing, tries yt-dlp -U, falls back to pip upgrade when self-update is unavailable, then runs the download. If a pip-installed executable is not on PATH, the helper searches common per-user script directories and falls back to python -m yt_dlp.
Workflow
- Confirm the user provided a YouTube URL or ask for one.
- Pick an output directory. Default to
youtube-downloads/in the current working directory unless the user specifies another path. - Use the helper script for routine downloads so installation and updating are handled consistently.
- Pass through any advanced
yt-dlpoptions after--. - Report the output directory and the important downloaded filenames when finished.
Common Commands
Download best video and audio:
python3 youtube-download/scripts/youtube_download.py "URL"
Download a playlist:
python3 youtube-download/scripts/youtube_download.py "PLAYLIST_URL" --playlist
Extract MP3 audio:
python3 youtube-download/scripts/youtube_download.py "URL" --audio --audio-format mp3
Save subtitles and thumbnail:
python3 youtube-download/scripts/youtube_download.py "URL" --subtitles --thumbnail
Use browser cookies for private, member-only, age-restricted, or region-sensitive videos:
python3 youtube-download/scripts/youtube_download.py "URL" --cookies-from-browser chrome
Pass extra yt-dlp flags:
python3 youtube-download/scripts/youtube_download.py "URL" -- --write-info-json --write-comments
Notes
yt-dlp -Ucan automatically update official standalone builds. Some package-managed installs disable self-update; use pip upgrade as the fallback.- The helper is platform-neutral: it looks for
yt-dlp,yt-dlp.exe, oryt-dlp.cmd, then checks user install paths such as PythonScriptson Windows and userbindirectories on Linux/macOS. - Avoid downloading copyrighted material unless the user has rights or permission.
- For login-required content, prefer
--cookies-from-browseror--cookies FILEinstead of asking the user for credentials. - If YouTube rate limits or blocks the download, retry with cookies, a lower concurrency setting, or the user's requested proxy/VPN setup.
相关技能
Collect YouTube Video By URL data and return results
Collect YouTube Audio By URL data and return results
Sync latest audio or video (mp3/mp4) from YouTube channels to Google Drive.
Thin OpenClaw and ClawHub wrapper for the published clawfetch npm CLI, used to fetch web pages, GitHub READMEs, and Reddit threads as markdown.
从 YouTube 现有字幕中提取干净的纯文本转录,无需 npm 依赖,无需 API 密钥。