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.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for bili_danmu-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d3c7de04757b3e168a63c6b2bd0ce21f7f2773d44180b550e9ed40d7b30870 |
|
MD5 | 5b21f4575138161b3681adb6367ba843 |
|
BLAKE2b-256 | e581639ef9313bb4690bd8d5d10a655eba3ac3243b1103df605076ec3150f0d8 |