Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/759434091/danmu-crawler

抓取虎牙、斗鱼直播弹幕流npm模块
https://github.com/759434091/danmu-crawler

Last synced: 12 days ago
JSON representation

抓取虎牙、斗鱼直播弹幕流npm模块

Awesome Lists containing this project

README

        

# 虎牙/斗鱼 弹幕流抓取

## 使用方法

`index.js`暴露了主函数的入口

目前引入方法:
其中callback为消息处理函数
````javaScript
const DanMuFetch = require("./index")
const danMuFetch = new DanMuFetch(url, handleMsg) // handleMsg 在handler包中有dbHandler可以使用,也可以自己实现

danMuFetch.start()
//danMuFetch.stop()
````

使用实例参见
./test/moduleTest.js