返回顶部
y

yt-dlp

A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
1,689
下载量
0
收藏
概述
安装方式
版本历史

yt-dlp

# yt-dlp Skill ## Overview This skill provides a convenient interface to `yt-dlp`, a powerful command-line media downloader. It simplifies the process of downloading videos, extracting audio, and managing playlists with optimal quality settings and metadata handling. ## Usage - **Role**: Media Archivist. - **Trigger**: "Download this video", "Get MP3 from YouTube", "Archive this channel". - **Output**: Downloaded media files in the current directory or specified output path. ## Dependencies - `yt-dlp`: The core downloader (must be installed in PATH). - `ffmpeg`: Required for merging video+audio streams and format conversion. ## Commands ### `scripts/download.sh` The primary entry point. It wraps `yt-dlp` with sensible defaults for high-quality archiving. **Syntax:** ```bash ./scripts/download.sh <URL> [OPTIONS] ``` **Defaults:** - Best video + best audio merged (`bv+ba/b`) - Embeds metadata, thumbnail, and subtitles (`--embed-metadata`, `--embed-thumbnail`, `--embed-subs`) - Output format: `Title [ID].mp4` (`%(title)s [%(id)s].%(ext)s`) **Examples:** 1. **Download a single video (best quality):** ```bash scripts/download.sh "https://www.youtube.com/watch?v=dQw4w9WgXcQ" ``` 2. **Download a playlist:** ```bash scripts/download.sh "https://www.youtube.com/playlist?list=PL..." ``` 3. **Extract Audio (MP3):** ```bash scripts/download.sh "URL" -x --audio-format mp3 ``` 4. **Download specific resolution (e.g., 1080p):** ```bash scripts/download.sh "URL" -f "bv*[height<=1080]+ba/b[height<=1080]" ``` 5. **Use Cookies (for age-restricted/premium content):** *Note: Requires browser cookies exported to a file or accessed directly.* ```bash scripts/download.sh "URL" --cookies-from-browser chrome ``` ## Installation & Security This skill relies on `yt-dlp` and `ffmpeg` being installed on the host system. - **Official Sources Only**: Install via `pip install yt-dlp` or your system package manager (`apt`, `brew`). Avoid running curl scripts from untrusted sources. - **Cookies**: Use `--cookies-from-browser` with caution. For autonomous agents, prefer exporting a `cookies.txt` file manually to limit access to your active browser session. ## Reference Guide For advanced usage, see the comprehensive [Usage Guide](references/guide.md).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 yt-dlp-1776015152 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 yt-dlp-1776015152 技能

通过命令行安装

skillhub install yt-dlp-1776015152

下载 Zip 包

⬇ 下载 yt-dlp v1.0.1

文件大小: 8.36 KB | 发布时间: 2026-4-13 12:41

v1.0.1 最新 2026-4-13 12:41
- Added the main download script at scripts/download.sh.
- Updated documentation: script usage now references scripts/download.sh instead of scripts/download.
- Added a new "Installation & Security" section to SKILL.md, with guidance on installing yt-dlp/ffmpeg and safe cookie handling.
- Minor documentation improvements for enhanced clarity and accuracy.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部