youtube-downloader
以最高质量将 YouTube 视频下载为 MP4。当用户发送 YouTube URL 并想要下载/保存它时使用。在具有下载意图的 YouTube 链接(youtube.com、youtu.be)上触发。将视频存储为带有标签的资产,并将其注册到仪表板。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~honeybee1130-yt-downloadercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~honeybee1130-yt-downloader/file -o honeybee1130-yt-downloader.md## 概述(中文)
以最高质量将 YouTube 视频下载为 MP4。当用户发送 YouTube URL 并想要下载/保存它时使用。在具有下载意图的 YouTube 链接(youtube.com、youtu.be)上触发。将视频存储为带有标签的资产,并将其注册到仪表板。
## 原文
# YouTube Downloader
Download YouTube videos as high-quality MP4 files and register them as assets.
## Usage
When user sends a YouTube URL to download:
```bash
bash ~/. openclaw/workspace/skills/youtube-downloader/scripts/download.sh "YOUTUBE_URL" "label"
```
**Parameters:**
- `YOUTUBE_URL` - Full YouTube URL (youtube.com/watch, youtu.be, youtube.com/shorts)
- `label` - Short descriptive label (e.g., "honey-b-interview", "og-event-recap")
## Example
User: "download this https://youtube.com/watch?v=abc123 and label it event-recap"
```bash
bash ~/.openclaw/workspace/skills/youtube-downloader/scripts/download.sh "https://youtube.com/watch?v=abc123" "event-recap"
```
## Output
- **Video location:** `~/.openclaw/workspace/assets/videos/{label}_{videoId}_{timestamp}.mp4`
- **Registry:** `~/.openclaw/workspace/assets/registry.json` - JSON log of all downloaded assets
## Registry Format
Each download adds an entry:
```json
{
"type": "video",
"source": "youtube",
"videoId": "abc123",
"label": "event-recap",
"filename": "event-recap_abc123_20260201_234500.mp4",
"path": "/full/path/to/file.mp4",
"url": "https://youtube.com/watch?v=abc123",
"downloadedAt": "2026-02-01T23:45:00Z",
"filesize": "150M"
}
```
## Quality
Downloads best available quality:
- Video: Highest resolution (up to 4K)
- Audio: Best quality, merged
- Format: MP4 (h264 + aac)
## Limitations
- No live streams
- Private/deleted videos will fail
- Age-restricted may need cookies