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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "bilibili-downloader" with this command: npx skills add sunshine-del-ux/sunshine-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 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Athens Greece

Explore Athens Greece's 5,000-year history, economic revival, key maritime role, and its cultural heritage balancing modern growth with ancient legacy.

Registry SourceRecently Updated
General

pa-pack

Modular toolkit for personal assistant tasks including message triage, draft replies, scheduling checks, and follow-up tracking with customizable prompts.

Registry SourceRecently Updated
General

Armani Group

Detailed overview of Armani Group's history, business model, brand strategy, and market presence in the luxury fashion industry.

Registry SourceRecently Updated
General

Acne Studios

提供关于瑞典轻奢品牌Acne Studios的历史、品牌转型、定价策略及北欧极简设计风格分析。

Registry SourceRecently Updated