bilibili-downloader

Batch download Bilibili videos and extract audio to MP3.

4|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/atxinsky/skills --skill bilibili-downloader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bilibili-downloader
Source: https://github.com/atxinsky/skills/tree/main/bilibili-downloader
Command: npx skills add https://github.com/atxinsky/skills --skill bilibili-downloader

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yt-dlp, ffmpeg, torch, demucs, soundfile, numpy, julius.

What problem does it solve?

This Skill simplifies bulk downloading of Bilibili videos and optional audio extraction, enabling creators and researchers to archive content quickly.

Core Features & Use Cases

  • Batch download: fetch single videos, multi-P playlists, or entire UP主 video collection.
  • Audio extraction: convert downloaded videos to MP3, with an option to keep video files if desired.
  • Playlist and space support: download specific videos via URL, entire playlists with --all-pages, or all uploads from a user via the space API.
  • Optional vocals separation: extract vocal-only MP3s when the external Demucs-based tool is available.

Quick Start

Use the bilibili-downloader skill to download a single video or a playlist. Example commands:

  • python bili_download.py --url "<BILIBILI_URL>" --audio-only
  • python bili_download.py --space "UP_UID" --all-pages --cookies from-browser

Frequently Asked Questions about bilibili-downloader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch download Bilibili videos and playlists for offline archiving?

To batch download Bilibili videos, you can fetch single videos, multi-P playlists, or entire UP-hosted collections using specific URLs and the --all-pages flag. This enables quick bulk retrieval for accessible offline media archiving.

How do I extract audio from Bilibili videos as MP3 files?

You can extract audio from Bilibili videos by running the download script with the --audio-only flag. This converts the downloaded video files into MP3 audio tracks, with an option to keep the original video files if desired.

Do I need yt-dlp and ffmpeg to download videos from Bilibili?

Yes, you need yt-dlp and ffmpeg installed to download Bilibili videos and extract audio. These dependencies are required for the core fetching and media conversion processes to function correctly.

Can I download all videos from a specific Bilibili UP主 user space?

Yes, you can download all uploads from a specific UP主 by using the space API with their UP UID. Passing the --all-pages flag ensures the tool fetches the entire video collection from that user's space.

How do I extract vocal-only audio tracks from downloaded Bilibili videos?

To extract vocal-only MP3s from Bilibili videos, the external Demucs-based tool must be available in your environment. This optional vocals separation feature isolates singing voices from the background music.

Why do I need to use cookies when downloading Bilibili playlists?

You need to use cookies, such as those passed via the --cookies from-browser flag, to authenticate your session. This ensures the tool can successfully access and download complete playlists or private content without authorization errors.