无需服务器,哔哩哔哩直播自动签到

无需服务器,哔哩哔哩直播自动签到

kain
2020-07-27 / 0 评论 / 682 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2020年07月29日,已超过1391天没有更新,文章所提及的内容可能已过时失效,所以请自行测试验证。

ttJM3A

哔哩哔哩直播自动签到

哔哩哔哩直播自动签到

仓库地址:https://github.com/t00t00-crypto/bilibili-action

Github Actions 部署指南

一、Fork 此仓库

image-20200727142541791

二、设置账号COOKIE

先登录B站,然后访问https://api.live.bilibili.com/sign/GetSignInfo,按F12,在Network中刷新

image-20200727150526051

复制cookie中的内容,从sid开始至infoc(可能有所不同)

GitHub中添加名为 COOKIE的变量,值为复制的内容。

Settings-->Secrets-->New secret

支持多账号,账号COOKIE之间用 # 分隔

示例:COOKIE:sid=97d0....#sid=97d0....
image-20200727142753175

三、启用 Action

  1. 点击 Actions,再点击 I understand my workflows, go ahead and enable them

  2. 点击左侧的 Star

    image-20200727142617807

四、查看运行结果

Actions --> 签到 --> build

能看到如下图所示,表示成功

注意事项

  1. 每天运行两次,在上午 6 点和晚上 22 点。
  2. 可以通过 Star 手动启动一次。

    image-20200727142617807

P.S.

  • 使用本项目*不会*导致你的用户名或密码泄露
  • 设定启动时间
    可以在项目的 /.github/workflows* 文件夹下打开 run.yml* 并编辑

image.png

修改第9行(注意:*时间是 UTC 时间,与北京时间时差为 +8*),即北京时间早上6点为 UTC 时间 22点
image.png

  • 禁止其他人 Star 导致签到误启动

在15行下面加入

if: github.event.repository.owner.id == github.event.sender.id

image.png
image.png

  • 保存修改
    image.png
0

评论 (0)

取消