Skip to main content

A modern library for receiving danmu from bilibili livestream

Project description

bili-danmu

A modern library for receiving danmu from bilibili livestream, with full asynchronous support.

NOTICE: It's a simple implement, so IT DOES NOT INCLUDE PARSEING DANMU FEATURES. You need to parse the danmu dict mannually.

Installation

Just execute pip install bili-danmu

Example

import asyncio
from danmu import DanmuClient

loop = asyncio.new_event_loop()
dmc = DanmuClient(25512465)

@dmc.on_danmu
async def on_danmu(room_id: int, danmu: dict):
    print(danmu)

dmc.run(loop)
loop.run_forever()

Special Thanks

This project refers to some other projects. Sincerely appreciate their developers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bili_danmu-0.2.5.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

bili_danmu-0.2.5-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page