Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/THMonster/danmaku

A python module for fetching danmaku.
https://github.com/THMonster/danmaku

bilibili danmaku douyu huya

Last synced: 14 days ago
JSON representation

A python module for fetching danmaku.

Awesome Lists containing this project

README

        

# danmaku
一个基于aiohttp的直播网站弹幕库(WIP)

目前支持斗鱼、虎牙、B站

感谢[danmu](https://github.com/littlecodersh/danmu)

## 用法

```python3
import asyncio
import danmaku

async def printer(q):
while True:
m = await q.get()
print(m)

async def main():
q = asyncio.Queue()
dmc = danmaku.DanmakuClient('https://douyu.com/9999', q)
asyncio.create_task(printer(q))
await dmc.start()

asyncio.run(main())
```