Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/759434091/danmu-crawler
抓取虎牙、斗鱼直播弹幕流npm模块
https://github.com/759434091/danmu-crawler
Last synced: 12 days ago
JSON representation
抓取虎牙、斗鱼直播弹幕流npm模块
- Host: GitHub
- URL: https://github.com/759434091/danmu-crawler
- Owner: 759434091
- License: mit
- Created: 2018-11-11T16:49:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T03:52:00.000Z (over 5 years ago)
- Last Synced: 2024-08-01T18:32:39.297Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 19
- Watchers: 0
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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