Skip to content

lihaohong6/bilibili-tools

Repository files navigation

Bilibili Tools

中文版文档

This is a personal project aimed at analyzing bilibili content.

Bilibili-Tools provides several Python scripts to

  • Find time intervals of greatest danmaku activity in a video – likely where something interesting occurred.
  • Fetch all dynamic of a user.

Dependencies

Python 3.9 works. Not sure about lower versions.

bilibili_api should be the only required package. Install with pip.

Example usage

python3 danmaku_analyzer.py BV1yF411Y7xs some_file.xml

Explanation: analyze danmaku from two videos: BV1yF411Y7xs and another unnamed video whose danmaku is stored in some_file.xml .

python3 danmaku_analyzer.py -f sources.txt -m 5

Explanation: analyze danmaku from BV numbers stored in a file named sources.txt. The file must be in the same directory as the script. Otherwise, provide a relative or absolute directory. Peak multiplier is set to 5, lower than the default. This means the program will generate more intervals than default.

Use python3 danmaku_analyzer.py -h to get a list of full parameters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages