Can make you the fastest man at station B!

Here is the introduction:

StreamerHelper

🍰 Never miss your Streamer again

MIT

Introduction

After the deployment, the background monitors whether the anchors are online in batches, records the live broadcast in real time and saves it as a video file, and submits it to B station after the broadcast is stopped. (For copyright issues, all parameters for submission are set and reprinted by default, and the room number of the anchor is put in the introduction by default)

Installation

Templates /info.json file: personInfo for the id and password of the site you want to upload, streamerInfo for the host you want to batch record, key for the title information, and Value for the host address.

{
  "personInfo": {
    "username": "".    "password": ""
  },
 "streamerInfo": [  {  "gushouyu": "https://www.huya.com/gushouyu". "wanmei": "https://www.huya.com/wanmei"  }  ] } Copy the code

Deployment:

brew install ffmpeg
npm i -g pm2
git clone https://github.com/ZhangMingZhao1/StreamerHelper.git && cd StreamerHelper
npm i
npm run serve
Copy the code

Environment

Our machine works perfectly under the following conditions:

Ali Cloud lightweight application server, MEMORY 2g, CPU 1 core, Ubuntu 18.04, simultaneously detect two anchors.

Node.js npm TypeScript
12.18.2 6.14.5 3.9.6

TodoList

  • [x] canine teeth
  • [X] Automatic monitoring of anchors online
  • [x] Automatically upload site B
  • [x] Multi-p download multi-P upload
  • [x] Supports multiple anchors
  • [] In addition to huya multiple platforms: Douyu, Twitch, B station live… (development is almost finished, will be merged soon)
  • [] Crawler timing interval, save server traffic…
  • [] After the restart, check whether there are video files that failed to be uploaded and upload them.

Example

See: https://space.bilibili.com/3356199 or https://space.bilibili.com/11314291

Tips

It is recommended to use a VPS with a large pipe mouth. Otherwise, the upload and download speed may be affected. After the update, please renew the pm2 restart app with git pull. If the VPS is relatively low configuration, the number of configured anchors should not be too much, but also pay attention to the disk size of VPS.

If there is a problem, add QQ group 1142141023 and remark streamerHelper

Code: making

Ask for a little star ^_^ to give some motivation to support other platforms and maintain them

This article is reprinted by the author with authorization.