基于github actions-天翼云盘自动签到获取免费空间

基于github actions-天翼云盘自动签到获取免费空间

天翼云盘的速度是很香的,无奈空间容量少的可怜,目前的活动就是签到赚空间,一天100M以上,一个月就是3G+。

测试了一周时间,签到随机最多给过98M,抽奖固定2次,每次50M。

有大佬做了个github actions的签到脚本很方便,这里记录一下(也有python、go)

有服务器的推荐github编译好的自动签到,也方便备份文件到天翼云盘。

python3环境:https://github.com/Aruelius/cloud189

go语言环境:https://github.com/tickstep/cloudpan189-go

Frok仓库:https://github.com/peng4740/Cloud189Checkin-Actions作者项目前几天已删除,无论是个人原因还是github官方原因,反正是没了!

这里更新下其它作者的签到脚本,方法一样。这个脚本可以添加企业微信、钉钉、及server酱通知!

仓库:https://github.com/Ecalose/Cloud189Checkin-Actions

准备:

  • github账号一枚
  • 天翼云盘账号密码

流程

  • server酱绑定微信获取SCKEY(用于微信消息推送)
  • Fork天翼云盘签到项目

一,server酱绑定微信获取SCKEY

server酱推送签到消息,可以看到签到消息

server酱依赖github账号登陆,所以必须可以正常打开github.com才可以登陆(不能打开的可以更换hosts文件,具体百度)

1,打开server酱地址:http://sc.ftqq.com/

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-12.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

2.输入github账号密码登陆

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-13.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

3.绑定要接受消息的微信

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-15-1024x581.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

4.点击“开始绑定”后,会弹出二维码,使用微信扫码进行绑定,绑定公众号“方糖”

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-6-1024x711.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

5,获取SCKEY,复制保存一下,一会要用到项目中。

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-26.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

二,Fork天翼云盘签到项目

1.打开项目地址https://github.com/Ecalose/Cloud189Checkin-Actions

登录自己的github账号(没有的自行注册,不会就百度),fork到自己账号下

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-7-1024x320.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

2.回到个人主页,查看刚刚fork的项目,点击进入

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-9.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-25-1024x317.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

3.进入项目后,创建秘钥,setting—–> Secrets—–>New repository secret

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-28-1024x607.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

4.秘钥变量名及值(Fork的项目中,作者有提到变量的使用)

USER:天翼网盘账号

PWD:天翼网盘密码

WWBOT:企业微信推送消息(可选)

DDBOT:钉钉机器人推送消息(可选),需要注意验证方式关键字填入“签到”

SCKEY:server酱微信推送消息(可选),注:server酱依赖github账号

推送消息3选1,也可以全部推送,钉钉推送方法我其它文章有写可以自行搜索,这里以server酱推送为例

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-29-1024x607.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

5.添加变量及对应的值

添加用户变量:USER

不要忘记点击Add secret,添加完成

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-31-1024x609.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

添加密码变量:PWD

不要忘记点击Add secret,添加完成

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-32-1024x566.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

添加server酱sckey:SCKEY

不要忘记点击Add secret,添加完成

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-33-1024x599.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-34-1024x685.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

企业微信机器人和钉钉机器人一样都是基于Webhook协议,获取URL即可(钉钉机器人需要额外定义关键字)

7.添加完变量,就可以点击右上角“star”,自动运行了。

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-30-1024x114.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

8.查看脚本状态

第一次运行actions的小伙伴,需要多一步骤,“启用action”,启用后,关闭star再重复打开,否则脚本不会运行。

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-35-1024x326.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-36-1024x437.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-37-1024x525.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

9.查看签到状态

如果变量填写的有推送消息,就看推送消息,没有的就自己下个天翼云盘app,或者网页,手动查看咯

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-38.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-39.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-42.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-41.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
good good study, day day up!

发表评论

textsms
account_circle
email

基于github actions-天翼云盘自动签到获取免费空间
天翼云盘的速度是很香的,无奈空间容量少的可怜,目前的活动就是签到赚空间,一天100M以上,一个月就是3G+。 测试了一周时间,签到随机最多给过98M,抽奖固定2次,每次50M。 有大佬…
扫描二维码继续阅读
2021-06-13