From legal-skills
Downloads media from video (Douyin, Bilibili, YouTube) and podcast platforms via yt-dlp. Handles restrictions with cookies, warns about DRM.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legal-skills:universal-media-downloaderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**优先覆盖(通常可直接用)**
优先覆盖(通常可直接用)
douyin.com、v.douyin.com 等视频链接bilibili.com、b23.tv 等youtube.com、youtu.be播客平台
合规提示:仅用于下载你有权保存的内容(例如你自己上传/拥有版权/获得授权/平台允许离线的内容)。遇到 DRM/加密或平台限制时,不要尝试绕过。
命令:
python scripts/download_media.py "<URL>"默认保存目录:
downloads/ 文件夹(自包含)--out-dir 参数自定义输出路径python scripts/download_media.py --audio-only --audio-format mp3 "<URL>"让用户提供浏览器导出的 Netscape 格式 cookies.txt
然后重试:
python scripts/download_media.py --cookies "/path/to/cookies.txt" "<URL>"--proxy "socks5://127.0.0.1:7890"--out-dir 参数--out-dir ~/Desktop--out-dir "~/Videos/bilibili"YouTube/B站/抖音:
--remote-components ejs:github),或让用户提供 cookiesSpotify:
scripts/download_media.py
yt-dlp 的通用下载器SAVED_FILEPATH=...--out-dir 参数url(必填)--audio-only / --audio-format--subtitles(可选,自动下载字幕)--sub-lang(可选,字幕语言,默认 all)--cookies(可选)--proxy(可选)--out-dir(可选,自定义输出目录)| 依赖 | 安装方式 |
|---|---|
yt-dlp | pip install yt-dlp |
ffmpeg(可选,用于字幕提取和音频转换) | macOS: brew install ffmpegLinux: sudo apt-get install ffmpeg |
无需额外 Python 依赖,yt-dlp 已包含所需库。
npx claudepluginhub cat-xierluo/legal-skills --plugin transcription-correctorDownload videos from 1000+ websites (YouTube, Bilibili, Twitter/X, TikTok, Vimeo, Instagram, Twitch, etc.) using yt-dlp. Use this skill whenever a user shares a video URL, asks to save or download a video, wants to extract audio from an online video, needs a specific quality like 1080p or 4K, or mentions downloading a playlist. Also trigger on "下载视频", "保存视频", "提取音频", or any URL from a supported video platform.
Downloads videos from YouTube, TikTok, Douyin, Bilibili, Instagram, XiaoHongShu and 1000+ platforms to MP4 using yt-dlp with agent-browser fallback for restricted content.
Manages yt-dlp media acquisition: format selection, playlist/channel syncing, audio extraction, subtitle download, cookies/auth, rate limiting, SponsorBlock, and failure triage.