Bilibili Danmaku Word Cloud
Generate a danmaku word cloud for a Bilibili video locally in your browser. This page closely follows and recreates the word-cloud presentation of nonebot-plugin-wordcloud.
Get Video
Supports BV IDs and Bilibili video URLs containing a BV ID.
Danmaku XML Links
Open the part you want, press Ctrl+A and Ctrl+C, then paste it into the input on the left.
Paste Danmaku XML
Everything is processed in this browser and is never uploaded. You can paste XML without fetching a video first.
Word Cloud Preview
Paste the danmaku XML for any one part to show its word cloud here.
How to Generate a Bilibili Danmaku Word Cloud
Get the Video
Enter a BV ID or full video URL and select Get Video. The page lists the complete danmaku XML URL for every part.
Copy One Part
Open the part you want to analyze, select all, and copy. For multi-part videos, choose only the part whose word cloud you want now.
Paste and Export
Paste into the XML area and the preview updates automatically. Download the finished PNG or export a CSV with weights and occurrence counts.
Local Danmaku Analysis
The tool removes links, emoji, and zero-width characters. Its defaults use frequency weights, two-character minimums, 200 words, a 1920×1200 black canvas, and Viridis colors. Stop words, weights, type, layout, colors, and canvas size all update live.
If a video URL includes a part parameter, that part is highlighted in the link list. Valid danmaku XML can always be pasted directly, even before video metadata is fetched.
Frequently Asked Questions
Q1Why do I need to open and copy the XML manually?
Video metadata can be read through a script endpoint, but danmaku XML is not reliably available to cross-origin web requests. Manual paste avoids those browser restrictions while keeping danmaku processing local.
Q2What if the copied text includes a browser notice?
Paste it as-is. The parser extracts the XML root or danmaku nodes from the full selection and ignores common notices, headers, footers, and surrounding noise.
Q3Do I have to process every part of a multi-part video?
No. The page shows every part link. Open and paste only the XML for the part you want to turn into a word cloud.
Q4Is danmaku content uploaded?
No. XML parsing, segmentation, frequency analysis, word-cloud layout, and file export all run in your current browser.