Skip to content

A python module for fetching danmaku.

License

Notifications You must be signed in to change notification settings

GhostUnion/danmaku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

danmaku

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

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

感谢danmu

用法

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())

About

A python module for fetching danmaku.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%