← Back to Skills Marketplace
benangel65

Bilibili Downloader

by BenAngel65 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1319
Downloads
0
Stars
14
Active Installs
1
Versions
Install in OpenClaw
/install bilibili-downloader
Description
Download videos, audio, subtitles, and covers from Bilibili using bilibili-api. Use when working with Bilibili content for downloading videos in various qual...
README (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 qn parameter (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:

  1. Login to Bilibili in browser
  2. Export SESSDATA cookie value
  3. 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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bilibili-downloader
  3. After installation, invoke the skill by name or use /bilibili-downloader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug bilibili-downloader
Version 1.0.0
License
All-time Installs 14
Active Installs 14
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 1319 downloads so far.

How do I install Bilibili Downloader?

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

Is Bilibili Downloader free?

Yes, Bilibili Downloader is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Bilibili Downloader support?

Bilibili Downloader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bilibili Downloader?

It is built and maintained by BenAngel65 (@benangel65); the current version is v1.0.0.

💬 Comments