AI Agent Hub
Back to skills
Bilibili Specified Video Danmaku Extractor icon

Bilibili Specified Video Danmaku Extractor

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_ab5ae6ee/unclecheng-bilibili-danmaku-extractor according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When analyzing Bilibili video danmaku, the main issue is turning scattered on-screen comments into structured data: you need appearance time, type, color, send timestamp, and a readable timeline. This skill targets a specified video, accepts a URL or BV identifier, and outputs JSON plus Markdown for downstream ingestion, cleaning, or quick review.

How It Works and Boundaries

Core capabilities:
- Danmaku extraction: it resolves the video information to get the cid, then calls the public Bilibili danmaku endpoint to collect rolling, bottom, and top danmaku types.
- Structured export: the JSON output includes video metadata and a danmaku array with fields such as text, time, type, type_code, color, and timestamp.
- Readable export: the Markdown output lists danmaku in video time order, which is useful for notes, reports, or ad-hoc analysis.
- No login required: it uses public APIs, does not ask for account credentials, and handles gzip-compressed responses.
Key steps: parse input → fetch video info → request danmaku data → parse fields → write files to the output directory. Boundaries: network access to the Bilibili API is required; high request rates may trigger 412/403 errors; missing danmaku or a failed cid lookup can return 0 items; completeness depends on the actual danmaku present in the video.

Use Cases

  • Export danmaku from a specified Bilibili video to Markdown for manual coding of audience reactions.
  • Load the video's danmaku JSON into scripts to count frequent comments and plot timing distribution.
  • Export competitor video danmaku as time-ordered Markdown to mark key discussion moments.
  • Capture all danmaku fields such as type, color, and timestamp for building timeline datasets.

Best For

  • Social media researchers or content operators who need to save specified Bilibili video danmaku to files for analysis.
  • Video analysts who break down competitor content and need time-ordered audience comments to extract key reactions.
  • Data engineers who build danmaku datasets and need type_code, color, and timestamp fields preserved.
  • Researchers doing Chinese video comment mining who want login-free extraction to JSON/Markdown.