← 返回
安全合规 中文

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.
强大的 yt‑dlp 命令行封装,可从 YouTube 及数千个其他网站下载视频、播放列表和音频,支持格式选择、质量控制、元数据嵌入以及 Cookie 认证。
1999azzar
安全合规 clawhub v1.0.1 1 版本 99627 Key: 无需
★ 0
Stars
📥 2,671
下载
💾 513
安装
1
版本
#latest

概述

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:

./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"

```

  1. Download a playlist:

```bash

scripts/download.sh "https://www.youtube.com/playlist?list=PL..."

```

  1. Extract Audio (MP3):

```bash

scripts/download.sh "URL" -x --audio-format mp3

```

  1. Download specific resolution (e.g., 1080p):

```bash

scripts/download.sh "URL" -f "bv*[height<=1080]+ba/b[height<=1080]"

```

  1. 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.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 20:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,697
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,143
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,584