A modern library for receiving bdanmu 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(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.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for bili_danmu-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33dc20ec4bddcac6beb6b8281a8dd517094b0048c9489f1b504f5fc1a1dd8652 |
|
MD5 | cdf18755dac83eb4b287102df1e5505f |
|
BLAKE2b-256 | bddd01f82e75ca2d5a48804402b653a9eb84c100b3fee41a6836c4823e463903 |