← 返回 Skills 市场
Bilibili Downloader
作者
BenAngel65
· GitHub ↗
· v1.0.0
1319
总下载
0
收藏
14
当前安装
1
版本数
在 OpenClaw 中安装
/install bilibili-downloader
功能描述
Download videos, audio, subtitles, and covers from Bilibili using bilibili-api. Use when working with Bilibili content for downloading videos in various qual...
使用说明 (SKILL.md)
Bilibili Downloader
Quick Start
Download a video by URL:
pip install bilibili-api-python
python -c "
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
sync(v.download(output='./video.mp4'))
"
Download Options
Video Quality
- Specify quality with
qnparameter (127=8K, 126=杜比, 125=1080P+, etc.) - Default selects best available quality
Audio Download
- Download original soundtrack:
v.download_audious(output='./audio.mp3') - Supports various audio formats
Subtitles
- Get available subtitles:
v.get_subtitle() - Download subtitle files:
sync(v.download_subtitle(output='./'))
Covers and Thumbnails
- Get cover URL:
v.get_cover() - Download cover:
sync(v.download_cover(output='./cover.jpg'))
Common Tasks
Download Single Video
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
sync(v.download(output='./video.mp4'))
Download with Specific Quality
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
info = v.get_download_url(qn=127) # 8K quality
Download Entire Playlist
from bilibili_api import video, sync
from bilibili_api import playlist
pl = playlist.Playlist(playlist_id='123456')
for v in sync(pl.get_videos()):
sync(v.download(output=f'./playlist/{v["title"]}.mp4'))
Download Audio Only
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
sync(v.download_audio(output='./audio.mp3'))
Authentication
For premium content, use browser cookies:
- Login to Bilibili in browser
- Export SESSDATA cookie value
- Set environment variable:
export BILIBILI_SESSDATA='your_cookie_value'
Requirements
- bilibili-api-python:
pip install bilibili-api-python - ffmpeg: Required for video/audio processing
- Python 3.8+
Resources
scripts/
Utility scripts for common download operations.
references/
- API documentation from bilibili-api repo
- Quality codes reference (qn values)
- Cookie setup guide
assets/
Download templates and configuration examples.
安全使用建议
This skill appears to do what it says: download Bilibili videos, audio, subtitles, and covers using the bilibili_api client. Before installing or running: (1) Review where you store authentication cookies — do not keep SESSDATA in a repo or shared config; prefer setting BILIBILI_SESSDATA as an environment variable at runtime. (2) Verify you trust the bilibili-api-python package you will pip install (check the package source and maintainers). (3) Expect the scripts to write files to the local filesystem (output directories in config); ensure the output path is acceptable. (4) The bundle includes runnable scripts — you may want to inspect or run them in a sandbox first if you have concerns. If you need higher assurance, ask the publisher for clarification about how authentication cookies are consumed (environment vs config file) and why the registry lists no required env vars while the README references SESSDATA.
功能分析
Type: OpenClaw Skill
Name: bilibili-downloader
Version: 1.0.0
The skill bundle is designed for downloading Bilibili content, which aligns with its stated purpose. However, the Python scripts (`scripts/*.py`) accept user-controlled `output_path` arguments directly from `sys.argv` and use them in `os.makedirs` and `os.path.join` without robust sanitization or validation. While filenames derived from video titles are partially sanitized (truncation, replacing '/'), the `output_path` itself could be manipulated by a malicious user or an exploited agent to write files to arbitrary locations on the filesystem (e.g., `/etc/passwd`), leading to a local file write vulnerability. This is a high-risk capability without clear malicious intent, classifying it as suspicious rather than benign. There is no evidence of data exfiltration, backdoors, or prompt injection against the agent.
能力评估
Purpose & Capability
Name/description match the included scripts and instructions: all code uses the bilibili_api library to fetch video/audio/subtitles/covers and write them to disk. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md and scripts only describe running the bilibili_api client and writing downloaded assets to local disk and config files. They instruct (reasonably) how to provide a SESSDATA cookie for premium content. Note: the provided config file contains a cookies.SESSDATA placeholder — the scripts do not directly read that field, but the bilibili_api library may read environment variables or cookies; this is plausible but not explicitly wired in the included scripts.
Install Mechanism
Registry shows no install spec (instruction-only), which is low risk. However, the package includes multiple runnable Python scripts in the bundle (not purely prose), so the 'instruction-only' label is slightly misleading but not dangerous. The SKILL.md recommends installing bilibili-api-python via pip and requires ffmpeg locally — both expected for this functionality.
Credentials
No required environment variables are declared by the registry, which is proportional. SKILL.md advises exporting BILIBILI_SESSDATA for authenticated/premium downloads; that's reasonable. Caution: the included config JSON contains a plaintext cookies.SESSDATA placeholder. Storing session cookies in config files (or committing them) is a security/privacy risk — the skill itself does not demand broad unrelated credentials.
Persistence & Privilege
Skill does not request persistent/always-on presence and uses no special agent-level privileges. It performs local file I/O for downloads and config, which is appropriate for its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bilibili-downloader - 安装完成后,直接呼叫该 Skill 的名称或使用
/bilibili-downloader触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of bilibili-downloader.
- Download Bilibili videos, audio, subtitles, danmaku, and covers using bilibili-api.
- Supports quality selection, format choices, and batch playlist downloads.
- Includes guidance for authentication with cookies for premium content.
- Provides utility scripts, API references, and configuration assets.
元数据
常见问题
Bilibili Downloader 是什么?
Download videos, audio, subtitles, and covers from Bilibili using bilibili-api. Use when working with Bilibili content for downloading videos in various qual... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1319 次。
如何安装 Bilibili Downloader?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-downloader」即可一键安装,无需额外配置。
Bilibili Downloader 是免费的吗?
是的,Bilibili Downloader 完全免费(开源免费),可自由下载、安装和使用。
Bilibili Downloader 支持哪些平台?
Bilibili Downloader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bilibili Downloader?
由 BenAngel65(@benangel65)开发并维护,当前版本 v1.0.0。
推荐 Skills