Bilibili Downloader
/install bilibili-downloader
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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bilibili-downloader - After installation, invoke the skill by name or use
/bilibili-downloader - Provide required inputs per the skill's parameter spec and get structured output
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.