← 返回 Skills 市场
zitao666

B站视频下载器

作者 zitao666 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
155
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install bili-video-downloader
功能描述
下载 B 站视频到指定目录。使用 yt-dlp,必须用 -o 参数指定完整路径,否则默认下载到 C 盘。
使用说明 (SKILL.md)

B站视频下载器

使用 yt-dlp 下载 Bilibili 视频。

⚠️ 关键规则

必须用 -o 参数指定完整路径,不能省略!

# ✅ 正确:-o 指定目标目录
yt-dlp -o "/path/to/videos/%(title)s.%(ext)s" "\x3Curl>"

# ❌ 错误:省略 -o,默认下载到当前工作目录(C盘/系统盘)
yt-dlp "\x3Curl>"

使用方式

用户提供:

  1. B 站 URL(视频页或合集链接)
  2. 保存路径(不提供则询问)

执行命令格式:

mkdir -Force "\x3C目标目录>" | Out-Null
yt-dlp -o "\x3C目标目录>/%(title)s.%(ext)s" "\x3Curl>"

示例

用户说 "下载到 D:\Videos\bili":

mkdir -Force D:\Videos\bili | Out-Null
yt-dlp -o "D:\Videos\bili\%(title)s.%(ext)s" "\x3CB站视频URL>"

用户说 "下载到 ~/Videos/bili":

mkdir -Force ~/Videos/bili | Out-Null
yt-dlp -o "~/Videos/bili/%(title)s.%(ext)s" "\x3Curl>"

合集下载:

yt-dlp -o "\x3C目录>/%(title)s.%(ext)s" "https://space.bilibili.com/xxx/lists/5374469?type=season"

技术细节

  • yt-dlp 默认行为 ≠ 下载到指定目录,必须显式指定 -o 完整路径
  • 合集约 45 个视频,可能有 2-5 个 extractor error(B站接口限制,非路径问题)
  • 文件名使用视频原标题(%(title)s
  • 完成后汇总成功/失败数量

常见问题

Q: 某些视频下载失败? → B站部分视频需要登录/会员,extractor error 是接口限制,非本 skill 问题。

Q: 路径怎么填? → 告诉用户先创建目录,执行时带上完整路径参数。

安全使用建议
This skill is mostly a set of shell instructions for calling your local yt-dlp tool. Before installing/using: (1) ensure yt-dlp is installed from a trusted source (pip or your distribution) and is on PATH; (2) test the example commands manually first to confirm the correct syntax for your OS (the README mixes PowerShell and Unix path examples); (3) be explicit with the -o path to avoid unintended download locations and check available disk space; (4) note the skill does not handle Bilibili login/cookies — videos that require authentication may still fail; (5) if you want the agent to auto-install yt-dlp, verify the pip command and package source yourself. Overall the pieces line up, but exercise the usual caution when running commands that download remote content and create files on disk.
功能分析
Type: OpenClaw Skill Name: bili-video-downloader Version: 1.0.2 The skill bundle provides instructions for an AI agent to download Bilibili videos using the legitimate 'yt-dlp' utility. It includes specific guidance in SKILL.md to ensure the agent uses the '-o' parameter for path management and creates directories using PowerShell commands. No evidence of data exfiltration, malicious execution, or intentional prompt injection was found.
能力评估
Purpose & Capability
Name/description match the required capability: the skill only needs yt-dlp to download Bilibili videos. The SKILL.md metadata even suggests a pip install for yt-dlp, which is consistent with the purpose.
Instruction Scope
Runtime instructions are limited to creating a directory and running yt-dlp with an -o output path. They do not request reading arbitrary files or extra environment variables. Minor issues: examples mix Windows PowerShell syntax (mkdir -Force | Out-Null) and Unix-style paths (~), which is ambiguous but not a security problem.
Install Mechanism
The registry summary said 'No install spec' but SKILL.md contains a metadata install suggestion for installing yt-dlp via pip. The skill is otherwise instruction-only (no code files), so there is no high-risk download/extract behavior. Verify installation source (pip) if you choose to auto-install.
Credentials
No environment variables, credentials, or config paths are requested. The lack of credential requests is consistent, though the SKILL.md notes some Bilibili videos may require login (the skill does not provide guidance for supplying cookies or auth tokens).
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent/system-wide privileges or modify other skill configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bili-video-downloader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bili-video-downloader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2: 示例URL替换为占位符
v1.0.1
v1.0.1: 移除硬编码路径,改为用户指定
v1.0.0
Initial release - B站视频/合集下载到D盘
元数据
Slug bili-video-downloader
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

B站视频下载器 是什么?

下载 B 站视频到指定目录。使用 yt-dlp,必须用 -o 参数指定完整路径,否则默认下载到 C 盘。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 155 次。

如何安装 B站视频下载器?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bili-video-downloader」即可一键安装,无需额外配置。

B站视频下载器 是免费的吗?

是的,B站视频下载器 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

B站视频下载器 支持哪些平台?

B站视频下载器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 B站视频下载器?

由 zitao666(@zitao666)开发并维护,当前版本 v1.0.2。

💬 留言讨论