A modern library for receiving bdanmu ofrom 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(danmu: dict):
print(danmu)
dmc.run(loop)
Project details
Release history Release notifications | RSS feed
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.1.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for bili_danmu-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16c844e5543c16ce3584b5567dff75e8dd6fbf8cc82afe0fd82325b7bacd641 |
|
MD5 | fe1d986310ad67b4ebaa16b030844eca |
|
BLAKE2b-256 | be0e0a9ca9baa4b492a1a8c466f2bf637a8679f69c595c9a3e1a4ebe27ff0113 |