npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bilibili-live-crawler

v0.1.2

Published

a crawler which made to monitor bilibili livestream data, using influxdb.

Downloads

3

Readme

bilibili-live-crawler

简介

一个b站直播数据爬虫,使用InfluxDB进行存储。

部署

1. 安装Node.js

https://nodejs.org/en/download/

2. 获取程序

npm install @h4m5ter/bilibili-live-crawler

3. 安装数据库

https://portal.influxdata.com/downloads/
https://docs.influxdata.com/influxdb/v1.7/introduction/installation/

4. 配置和运行

在工作目录执行

npm start

程序将会启动并生成config.json 修改配置后再次启动即可

{
	"uid": [
		123,                         在这里填写监视的主播uid(而不是房间号)
		321
	],
	"database": {
		"name": "dbname",            在这里填写数据库名字
		"writeRate": 60000,          程序累计存储多久数据后打包写入数据库 毫秒
		"host": "localhost",         默认没有特殊需求不需要改动 如果数据库服务器在云端 需要和数据库的设置同步改动
		"port": 8086                 同上 如果端口冲突 需要和数据库的设置同步改动
	}
}

5. 其他配置

如果需要开机启动、记录日志等功能 请自行配置pm2、systemd等
如果需要配置InfluxDB 请参阅 https://docs.influxdata.com/influxdb/v1.7/administration/config/

TODO

重构

目前的实现是爬取一个提供b站vtuber/vup直播数据监控但是不提供历史数据的站点,
未来应自行实现爬取b站直播数据的功能。

bin

命令行参数启动