yt-dlp
Video downloading skill using yt-dlp for YouTube and 1000+ other sites
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
yt-dlp Skill
A powerful video downloading skill that leverages yt-dlp, a feature-rich command-line audio/video downloader supporting YouTube and 1000+ other sites.
Capabilities
| Action | Description |
|---|---|
download_video |
Download video from URL with format selection |
download_audio |
Extract audio only from video URL |
get_info |
Extract video metadata without downloading |
download_playlist |
Download entire playlist |
download_subtitles |
Download video subtitles |
Requirements
pip install yt-dlp
For audio extraction, FFmpeg must be installed and in PATH.
Usage Examples
Download Video
from rhea_noir.skills.ytdlp.actions import skill as ytdlp
# Download best quality video
result = ytdlp.download_video(
url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
output_dir="./downloads",
format="best"
)
Extract Audio Only
# Download as MP3
result = ytdlp.download_audio(
url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
output_dir="./downloads",
codec="mp3"
)
Get Video Info
# Get metadata without downloading
info = ytdlp.get_info("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
print(info['title'], info['duration'], info['view_count'])
Download Playlist
result = ytdlp.download_playlist(
url="https://www.youtube.com/playlist?list=PLxxxxx",
output_dir="./downloads",
max_videos=10 # Optional limit
)
Supported Sites
yt-dlp supports 1000+ sites including:
- YouTube (videos, shorts, playlists, channels)
- Vimeo
- TikTok
- Twitter/X
- SoundCloud
- Twitch
- And many more...
Full list: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md
Output Templates
The skill uses smart naming: %(title)s [%(id)s].%(ext)s
Custom templates can be passed via output_template parameter.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!