MCPcopy Index your code
hub / github.com/StreamerHelper/web-server

github.com/StreamerHelper/web-server @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
19 symbols 51 edges 11 files 0 documented · 0% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

StreamerHelper

StreamerHelper

🍰 Never miss your Streamer again

MIT

Introduction

主播直播助手,部署后,后台批量监测主播是否在线,并实时录制直播保存为视频文件,停播后投稿到b站。(关于版权问题,投稿的参数默认一律设置的转载,简介处默认放的有主播房间号)

Installation

修改templates/info.json文件: personInfo为你的要上传的b站账号和密码, streamerInfo为你要批量录制的主播,key为标题信息,value为主播地址,目前支持虎牙平台。

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

部署:

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

Environment

我们的机器在下面环境下完美运行:

阿里云轻量应用服务器,内存2g,CPU 1核,Ubuntu 18.04,同时检测两个主播。

Node.js npm TypeScript
12.18.2 6.14.5 3.9.6

TodoList

  • [x] 虎牙
  • [x] 自动监测主播在线
  • [x] 自动上传b站
  • [x] 多p下载多p上传
  • [x] 支持多个主播
  • [ ] 除虎牙外的多个平台:斗鱼,twitch, b站直播..(开发的差不多了,即将合并)
  • [ ] 爬虫定时区间,节省服务器流量...
  • [ ] 重启后同时检测本地是否有上传失败的视频文件,并上传。

Example

例子

见:https://space.bilibili.com/3356199 或者 https://space.bilibili.com/11314291

Tips

建议使用管口大的vps,否则上传下载速度可能会受影响。更新后请及时git pull重新pm2 restart app。vps比较低配的话配置的主播数量不要太多,也要注意vps的磁盘大小。

有问题加qq群1142141023,备注streamerHelper

Extension points exported contracts — how you extend this code

HuyaStreamInfo (Interface)
(no doc)
src/type/getHuya.ts
videoPart (Interface)
(no doc)
src/type/videoPart.ts

Core symbols most depended-on inside this repo

getHuyaStream
called by 2
src/engine/huya/getHuyaStreamUrl.ts
delay
called by 2
src/uploader/index.js
login
called by 2
src/uploader/index.js
upload
called by 2
src/uploader/index.js
downloadStream
called by 1
src/engine/message.ts
testRoomTypeArr
called by 1
src/util/utils.ts
getRoomArrInfo
called by 1
src/util/utils.ts
deleteFolder
called by 1
src/util/utils.ts

Shape

Function 17
Interface 2

Languages

TypeScript100%

Modules by API surface

src/uploader/index.js6 symbols
src/util/utils.ts3 symbols
src/util/crypt.js2 symbols
src/uploader/example.js2 symbols
src/uploader/caller.ts2 symbols
src/type/videoPart.ts1 symbols
src/type/getHuya.ts1 symbols
src/engine/message.ts1 symbols
src/engine/huya/getHuyaStreamUrl.ts1 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add web-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact