运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install download-video
镜像加速npx clawhub@latest install download-video --registry https://cn.longxiaskill.com镜像同步中
技能文档
下载 Video (YouTube / Bilibili) Overview
Use yt-dlp to 下载 videos from YouTube or Bilibili. 下载s go to the user's Videos folder (~/Videos).
Prerequisites
yt-dlp must be 安装ed:
yt-dlp --version
# 安装 if missing pip 安装 yt-dlp # cross-平台 win获取 安装 yt-dlp # Windows brew 安装 yt-dlp # macOS sudo apt 安装 yt-dlp # Debian/Ubuntu
ffmpeg is recommended for merging video+audio 流s.
下载 by URL yt-dlp -o "/%(title)s.%(ext)s" ""
Replace with the user's Videos folder path, and with the video URL.
Supported URLs:
YouTube: https://www.youtube.com/watch?v=... or https://youtu.be/... Bilibili: https://www.bilibili.com/video/BV... 下载 by Title (搜索) # YouTube yt-dlp -o "/%(title)s.%(ext)s" "yt搜索1: