Search

PythonReactSEOPDF
OpenClaw

bilibili-downloader

Download videos, audio, subtitles, and covers from Bilibili using bilibili-api. Use when working with Bilibili content for downloading videos in various qualities, extracting audio, getting subtitles and danmaku, downloading covers, and managing download preferences.

benangel650 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install benangel65/bilibili-downloader

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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...

Source information

Source
github
Repository
openclaw/skills
Path
skills/benangel65/bilibili-downloader
Version
—
Commit
9ae6ce0071bd47d40c799652c747882b58b3871a
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Bilibili Downloader

## Quick Start

Download a video by URL:
```bash
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
```python
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
sync(v.download(output='./video.mp4'))
```

### Download with Specific Quality
```python
from bilibili_api import video, sync
v = video.Video(bvid='BV1xx411c7m2')
info = v.get_download_url(qn=127)  # 8K quality
```

### Download Entire Playlist
```python
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
```python
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...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.