All Projects → shilx → acfun-live

shilx / acfun-live

Licence: GPL-3.0 License
使用 Puppeteer 开启 AcFun 直播监控室,挂牌子!😏

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to acfun-live

php-chrome-html2pdf
A PHP library for converting HTML to PDF using Google Chrome
Stars: ✭ 53 (+341.67%)
Mutual labels:  puppeteer
pppr
pppr is a prerender service
Stars: ✭ 18 (+50%)
Mutual labels:  puppeteer
touchRobot
js模拟手指触碰点击,手指滑动,下拉刷新
Stars: ✭ 46 (+283.33%)
Mutual labels:  puppeteer
purescript-toppokki
A binding to puppeteer to drive headless Chrome.
Stars: ✭ 48 (+300%)
Mutual labels:  puppeteer
whatsapp-tracking
Scraping the status of WhatsApp contacts
Stars: ✭ 49 (+308.33%)
Mutual labels:  puppeteer
puppeteer-github
GitHub automation driven by headless chrome.
Stars: ✭ 15 (+25%)
Mutual labels:  puppeteer
messages-web
📱 SMS gateway using your own phone!
Stars: ✭ 34 (+183.33%)
Mutual labels:  puppeteer
thal
译文:Puppeteer 与 Chrome Headless —— 从入门到爬虫
Stars: ✭ 651 (+5325%)
Mutual labels:  puppeteer
aws-lambda-pdf-generator-puppeteer
PDF generator for AWS lambda with puppeteer
Stars: ✭ 52 (+333.33%)
Mutual labels:  puppeteer
HtmlOrMarkdownConvertedToPdf
📚 NodeJS爬虫 + percollate获取网络教程并转成PDF电子书,持续更新
Stars: ✭ 62 (+416.67%)
Mutual labels:  puppeteer
Spotify-Headless
Experimental wrapper for Spotify API to search songs and control the web player using the CLI. (Feat. Puppeteer)
Stars: ✭ 73 (+508.33%)
Mutual labels:  puppeteer
SlackWebhooksGithubCrawler
Search for Slack Webhooks token publicly exposed on Github
Stars: ✭ 21 (+75%)
Mutual labels:  puppeteer
online-course-script
ocs 网课刷课脚本,帮助大学生解决网课难题,目前支持的平台:超星,智慧树
Stars: ✭ 352 (+2833.33%)
Mutual labels:  puppeteer
puppeteer-electron-quickstart
Quickstart project to run puppeteer library from an Electron application. Using ES-6 and babel.
Stars: ✭ 52 (+333.33%)
Mutual labels:  puppeteer
match-screenshot
A simple Jest or Chai matcher to compare screenshots, using Applitools Eyes
Stars: ✭ 14 (+16.67%)
Mutual labels:  puppeteer
hotshot
Takes screenshots of DOM elements
Stars: ✭ 19 (+58.33%)
Mutual labels:  puppeteer
robotframework-puppeteer
Puppeteer Web testing library for Robot Framework
Stars: ✭ 33 (+175%)
Mutual labels:  puppeteer
bots-zoo
No description or website provided.
Stars: ✭ 59 (+391.67%)
Mutual labels:  puppeteer
puppeteer-ide-extension
Standalone puppeteer playground in browser's developer tools.
Stars: ✭ 65 (+441.67%)
Mutual labels:  puppeteer
page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (+450%)
Mutual labels:  puppeteer

懒人包

懒人包试运行中,支持 Windows10 及以上,请前往 发布页面 下载,运行前请阅读使用说明

AcFun-Live

使用 Puppeteer 开启 AcFun 直播监控室,挂牌子,还有开播通知!😏
定时检查已开播并且拥有粉丝牌的直播间,根据设置进行操作。
Windows、WSL、Linux均可运行~
支持多台机子,请保持每台机子配置相同。
(序列形式的负载,并不是真正的均衡负载,因为实现起来比较容易😆

  • dev 分支
    主要用于功能测试、问题修复
  • main 分支
    自测通过后会发布到此分支

注意事项

  • 2021-2-5 无常猴 ac23978179

    我们注意到最近有很多有关A站平台的自制插件出现在社区中,我们不鼓励也不禁止大家自行开发涉AC的相关插件,但请肥肥们一定注意账号财产安全,对所有需要A站账号密码的插件有所警惕,在A站只有平台登录与APP登录才可以提供账号密码哦。

  • 2021-6-8 活动猴 ac29442323

    用户不得以任何不正当手段及其他破坏活动规则、违背活动公平原则的方式参与本活动。一经发现,本平台有权撤消活动资格,亦有权收回用户已领取的现金奖励、实物奖品或者虚拟奖品,并保留追究该用户责任的权利。如因前述不正当手段被本平台追究责任造成的损失,本平台不进行任何赔偿或补偿。不正当手段及舞弊行为包括但不限于:下载非官方客户端;使用模拟器、插件、外挂等非法工具扫码、下载、安装、注册、登录、赠与、领取奖励;恶意购买;虚假分享;倒买倒卖;注册多个账号;篡改设备数据;恶意牟利等扰乱平台秩序;使用插件、外挂、系统或第三方工具对本平台及本次活动进行干扰、破坏、修改或施加其他影响及本平台认为的其他不正当手段

配置

config.json

键名 类型 说明
cookies String 自行抓包,复制请求头的 cookie (饼干保质期一个月)
account String 账号
password String 密码
checkLiveTimeout Number 每(分钟)检查直播
likeBtnTimeout Number 每(分钟)自动点赞
0为关闭自动点赞
defaultTimeout Number 异步操作最多等待(分钟)
executablePath String Chromium 路径
C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
注意路径的斜杠方向
uidUnwatchList Array 这些 UID 的直播间不看
showLiveInfo Boolean 检查直播状态时是否展示主播详细信息
checkWearMedal Boolean 佩戴牌子的主播不观看
(戴着牌子说明你正在D TA,不需要服务器挂牌子)
serverRoomLimit Array 支持多台服务器
假如你有三台服务器,并填入了 [3, 2, 0]
第一台服务器负责挂第0、1、2个直播间
第二台服务器挂第3、4个直播间
第三台服务器挂剩余的所有直播
直播间按开播时间从早到晚
自己测试自己的机子能挂多少直播间
serverIndex Array 当前是第几台,从0开始
checkAllRoom Boolean 只要有牌子,不管是否关注都监控
useObsDanmaku Boolean 使用官方OBS弹幕工具监控
开启此项时 自动点赞功能 会失效
notification Boolean
Array
借助第三方APP推送开播通知
true: 所有粉丝牌主播的通知
false: 不推送开播通知
[ Number ]: 指定uid开播推送,前提是已关注并有粉丝牌
此配置项会受 checkAllRoom 影响
服务器时间的 0~6 点不推送
iftttKey String IFTTT 密钥
配置方法
barkKey String Bark 密钥 IOS用户专享
配置方法
mux Boolean
String
获取粉丝牌详情时是否并发
true:开启(D太多有可能被服务器拒绝请求)
false:关闭
"auto":超过 10 个就不并发获取

运行

  1. 安装
    • NodeJs 和 NPM
    • 下载源码
    • 安装依赖包(建议 npm ci
  2. 运行
    npm run startnode app
  3. 进阶
    使用进程守护挂载
    PM2 ,配置文件在 ecosystem.config.js ,日志记录也靠它

当前状态

  • Win10

    正常运行 😎
  • WSL

    正常运行 😎
  • Linux

    以Oracle为例
    • ARM 单核6G 😎
      安装 npm 包时照着提示来就行
      6G内存机子没有限制直播间数量,挂了5天没发生异常
    • x86 单核1G 😶 不知道为啥会报这个错误,出错了牌子经验就不会涨
      目前解决方案就是报错就关闭页面,等下次检查直播时在打开
      监控数量设的越大越容易出现此错误,所以只能设置2个
      Error: DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
        at WebSocket.send (<anonymous>)
        at t.sendPushAck (https://ali-imgs.acfun.cn/kos/nlav10360/static/js/0.2b0f2cd0.js:2:295904)
        at t.<anonymous> (https://ali-imgs.acfun.cn/kos/nlav10360/static/js/0.2b0f2cd0.js:2:294659)
        at https://ali-imgs.acfun.cn/kos/nlav10360/static/js/0.2b0f2cd0.js:2:256372
        at Object.next (https://ali-imgs.acfun.cn/kos/nlav10360/static/js/0.2b0f2cd0.js:2:256477)
        at a (https://ali-imgs.acfun.cn/kos/nlav10360/static/js/0.2b0f2cd0.js:2:255215)
      

推送配置

IFTTT

  • 创建Applets
    1. My Applets - Create
    2. If This - Add
      • 搜索 webhooks 并进入配置
      • Event Name 输入 acfun_live
    3. Then That - Add
      • 搜索选择 Notifications
      • 选择 Send a rich notification from the IFTTT app
      • Title 选择变量 Value1
      • Message 选择变量 Value2
      • Link URL 选择变量 Value3
      • Create action
    4. Continue
    5. Finish
  • 获取 Webhooks Key
    1. 打开 https://ifttt.com/maker_webhooks
    2. 点击 Documentation
    3. 此页面会显示你的 key
      (可以在这个页面测试你的 Webhook )

BARK

  1. App Store 搜索并下载安装
  2. 打开 app 就可以看到链接 https://api.day.app/你的key/

推送说明及示例

推送文本中的时间是检测时间
点击推送会打开对应主播主页
开播通知 0 ~ 6 点默认不发送

  • 单个主播开播

    Acfun 开播通知
    xxx 已经开播
    xxxx-xx-xx xx:xx:xx

  • 超过6位主播开播

    Acfun 开播通知
    xxx 等 n 位主播已经开播
    xxxx-xx-xx xx:xx:xx

安装时可能出现的问题

  • ERROR: Failed to set up Chromium r782078! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
    一般是网络慢导致下载浏览器失败,解决方法有二
    • 设置淘宝预源后再次尝试安装
      npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
    • 如果你本机已经安装 Chromium,可以设置跳过下载后,再次尝试安装
      npm config set puppeteer_skip_chromium_download=true
      运行前需要在 config.json 里填入 executablePath
  • npm默认不以root身份运行
  • (node:10916) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! path/node_modules/puppeteer/.local-chromium/linux-782078/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].