gallifreyCar / BilibiliDanmakuSpider

Bilibili弹幕爬虫

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bilibili Danmaku Spider

English | 中文

Overview

This project is a Python-based danmaku spider that is used to collect danmaku data (including danmaku content, sending time, appearance time in the video, danmaku color, and font size) on 哔哩哔哩 (゜-゜)つロ 干杯~-bilibili.

Installation

  1. Make sure you have Python 3.8+ and pip installed.
  2. Install the required libraries using pip: pip install -r requirements.txt

Usage

  1. Open the website you need to crawl, add an i before the website name to jump to the API website.

image-20230322013318617

image-20230322013353601

  1. Copy the cid on the API website.

    image-20230322013644953

  2. Paste the cid into the code in main.py.

    image-20230322014044073

  3. Run the program, and the result will be saved in target/output.xlsx (Excel format) and target/output.json(JSON format)

Contributing

If you find any issues or have any suggestions for improvement, please raise an issue. If you would like to contribute to the project, please fork the project and submit a pull request.

License

This project is open-sourced under the MIT License, see the LICENSE file for more information.

About

Bilibili弹幕爬虫

License:MIT License


Languages

Language:Python 100.0%