← Back to Skills Marketplace
zitao666

B站视频下载器

by zitao666 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
155
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install bili-video-downloader
Description
下载 B 站视频到指定目录。使用 yt-dlp,必须用 -o 参数指定完整路径,否则默认下载到 C 盘。
README (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: 路径怎么填? → 告诉用户先创建目录,执行时带上完整路径参数。

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bili-video-downloader
  3. After installation, invoke the skill by name or use /bili-video-downloader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
v1.0.2: 示例URL替换为占位符
v1.0.1
v1.0.1: 移除硬编码路径,改为用户指定
v1.0.0
Initial release - B站视频/合集下载到D盘
Metadata
Slug bili-video-downloader
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is B站视频下载器?

下载 B 站视频到指定目录。使用 yt-dlp,必须用 -o 参数指定完整路径,否则默认下载到 C 盘。 It is an AI Agent Skill for Claude Code / OpenClaw, with 155 downloads so far.

How do I install B站视频下载器?

Run "/install bili-video-downloader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is B站视频下载器 free?

Yes, B站视频下载器 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does B站视频下载器 support?

B站视频下载器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created B站视频下载器?

It is built and maintained by zitao666 (@zitao666); the current version is v1.0.2.

💬 Comments