bilibili-cli

Access Bilibili video metadata, subtitles, comments, and audio streams via CLI.

2|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/GACLove/feishu-aily-skills --skill bilibili-cli-gaclove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bilibili-cli
Source: https://github.com/GACLove/feishu-aily-skills/tree/main/skills/bilibili-cli
Command: npx skills add https://github.com/GACLove/feishu-aily-skills --skill bilibili-cli-gaclove

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable developers and AI agents to interact with Bilibili from the terminal to quickly retrieve video metadata, subtitles, comments, audio streams, user profiles, trending lists, and manage collections or interactions without using the web UI.

Core Features & Use Cases

  • Video inspection: fetch metadata, play counts, danmaku, and AI summaries for programmatic analysis.
  • Subtitle & comments: retrieve subtitles and top comments for summarization or moderation workflows.
  • Audio extraction for ASR: download audio streams and split into 16kHz mono WAV segments ready for speech-to-text pipelines.
  • Discovery & management: search users/videos, browse hot/rank feeds, and manage favorites, watch-later, and history with optional authentication.
  • Use Case: Automatically extract audio segments from nightly trending videos, run ASR, and compile summaries for content monitoring or research.

Quick Start

Run the bili audio command to download a video's audio and split it into ASR-ready WAV segments.

Frequently Asked Questions about bilibili-cli

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

FAQPage Schema
How do I extract audio from a Bilibili video for ASR processing?

To extract audio from a Bilibili video for ASR, you can download audio streams and split them into 16kHz mono WAV segments. This format is ready for speech-to-text pipelines.

Can I retrieve Bilibili subtitles and comments from the terminal?

Yes, you can retrieve Bilibili subtitles and top comments from the terminal. This allows you to gather text data for summarization or moderation workflows without using the web UI.

Do I need authentication to manage Bilibili watch-later and favorites via CLI?

Authentication is required to manage Bilibili watch-later, history, and favorites via CLI. You can satisfy authenticated operations using browser cookie extraction or QR-login.

How do I monitor Bilibili trending lists programmatically?

You can monitor Bilibili trending lists programmatically by browsing hot and rank feeds. The output is formatted as JSON for machine parsing, enabling periodic trending monitoring scripts.

What is the best way to handle Bilibili API errors during terminal automation?

The best way to handle Bilibili API errors during terminal automation is using SDK and direct-API fallback error handling. This ensures reliable video metadata retrieval and user profile lookups.