https://github.com/ltzu929/bilibili-xml
弹幕数量可视化,方便切片man知道录播时弹幕热点(路灯)
https://github.com/ltzu929/bilibili-xml
Last synced: about 2 months ago
JSON representation
弹幕数量可视化,方便切片man知道录播时弹幕热点(路灯)
- Host: GitHub
- URL: https://github.com/ltzu929/bilibili-xml
- Owner: ltzu929
- Created: 2024-12-09T11:44:23.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T14:20:23.000Z (about 2 months ago)
- Last Synced: 2025-02-24T15:32:47.838Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
Awesome Lists containing this project
- awesome-bilibili-extra - Bilibili-xml - 弹幕数量可视化,方便切片 man 知道录播时弹幕热点(路灯).  (数据分析 / 直播脚本)
README
# Bilibili Danmaku Analysis Tool
## Project Overview
Welcome to the `Bilibili Danmaku Analysis Tool`! This is a Python script designed to parse and analyze XML-formatted danmaku data from Bilibili videos. With this tool, you can easily understand the danmaku activity per minute of a video and identify the most popular danmaku content, helping you gain deeper insights into viewer interaction patterns.## Tech Stack
- **Python**: The main programming language.
- **Matplotlib**: Used to create charts to visualize the danmaku data.
- **Tkinter**: Provides a simple file selection GUI.
- **ElementTree**: Used to parse XML-format danmaku files.
- **Requests**: Used to download danmaku data from the internet.## Features
- **Automated URL Handling**: Supports direct input of Bilibili video links, automatically extracting and validating the video link's validity.
- **Intuitive Data Visualization**: Generates line charts showing the trend of danmaku counts per minute and marks the points where the danmaku count spikes.
- **Simplified Text Processing**: Pre-processes danmaku content, standardizes specific characters (such as "Ha", "?", "Cao", "草", "艹", "1"), and ignores danmaku containing "Good night".
- **Interactive Information Tooltip**: When hovering over a point on the chart, the top three most frequent danmaku at that minute will be displayed.
- **Automatic Danmaku File Download**: Just provide the video link, and the tool will automatically download and analyze the danmaku file.## Usage Guide
1. **Download the File**: Simply download the `.exe` file.
2. **Run**: Double-click to run the program.
3. **Input URL**: Enter the sharing link of the video you want to analyze.
4. **View Results**: The program will automatically parse the danmaku data and generate a chart that visually displays how the danmaku count changes over time, along with the popular danmaku content.## Future Plans
I plan to further expand the functionality of this tool, including:
- Supporting emoji analysis.
- Supporting SC (Super Chat) search.