技能详情(站内镜像,无评论)
作者:azzar budiyanto @1999AZZAR
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.1
统计:⭐ 0 · 1.3k · 15 current installs · 15 all-time installs
⭐ 0
安装量(当前) 15
🛡 VirusTotal :可疑 · OpenClaw :良性
Package:1999azzar/yt-dlp
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :良性
OpenClaw 评估
The skill is internally consistent with its stated purpose — it's an instruction-level wrapper around yt-dlp with no unexpected credential or install demands — though there are a couple of small documentation/packaging gaps you should be aware of before running it.
目的
Name/description match the included files: docs plus a simple wrapper script that calls yt-dlp and ffmpeg. Requested capabilities (download, format selection, metadata, cookies) align with what yt-dlp provides; no unrelated services or privileges are requested.
说明范围
SKILL.md and references stay on-topic and only instruct use of yt-dlp/ffmpeg and the wrapper script. The wrapper does not read arbitrary files or network endpoints beyond yt-dlp's normal behavior. Note: the script warns to run 'scripts/setup' if yt-dlp isn't found, but no scripts/setup file is included in the bundle — this is a packaging/documentation gap (not evidence of exfiltration).
安装机制
No install spec in the registry (instruction-only), which minimizes automatic disk writes. The docs recommend installing yt-dlp via pip or package managers and warn against untrusted curl|sh installers. The included references even show a GitHub release URL (a normal source).
证书
The skill requires no environment variables, no credentials, and no config paths. The docs caution about cookie use (which is appropriate) but do not attempt to access browser secrets themselves. This is proportionate to a downloader wrapper.
持久
always is false and model invocation/autonomy is default. The skill does not request permanent presence or modify other skills. No elevated privileges or system-wide config modifications are attempted.
综合结论
This skill is a thin wrapper around yt-dlp and appears coherent. Before installing/using it: 1) ensure yt-dlp and ffmpeg are installed from official sources (pip, your OS package manager, or official GitHub releases) instead of running random curl|sh installers; 2) inspect the bundle (especially scripts/download.sh) — it attempts to use a .venv yt-dlp if present and otherwise calls system yt-dlp; 3) be cautious with cookies: using --cookies-fr…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Yt Dlp」。简介:A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from Y…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/1999azzar/yt-dlp/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: yt-dlp
description: 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.
---
# 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).