基于github action-京东自动签到赚京豆

基于github action-京东自动签到赚京豆

做运维看开发,呵呵呵。。。

0成本每天签到,白撸的开心不?

偶尔看到有大神的京东签到脚本,自己没有开发能力,不能保证脚本的安全性(github开源项目一般都是没问题,毕竟有能力的都能看懂脚本。。。)

测试了一下,一天20~40京豆,从百度看到有一天50~70个豆子的,也许是京东的api接口更新导致签到失败吧。反正是白撸的,挂着就行,一个月更新一次京东cookie也没什么问题。

安全措施:京东设置交易密码、关闭小额免密支付

fork地址:https://github.com/xcqlucky/JD_Sign_Action

准备:

github账号

流程:

  • 京东cookie(手机号登录,cookie最长1个月)
  • server酱(微信推送消息)
  • github账号(用于fork项目)

一,获取京东cookie

获取cookie懒人可以使用浏览器插件。

我这里使用浏览器调试模式(F12)

1.浏览器打开http://m.jd.com,右下角登录

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

2.尽量手机号登录,cookie的最长时效是1个月,其它方式一般一周。

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

3.点击F12(调试模式)——>再F5(刷新)——>找到log.gif开头文件,复制cookie,右键复制保存下,一会要用到项目中。

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

二,server酱绑定微信获取SCKEY

server酱推送签到消息,可以看到签到失败的原因尤其是cookie过期,方便我们更新cookie。

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项目JD_Sign_Action

1,打开项目地址https://github.com/xcqlucky/JD_Sign_Action,登录自己的github账号(没有的自行注册,不会就百度),fork到自己账号下

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

2,点击右上角自己的小头像,回到自己的主页

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

3,点击进入刚fork的项目JD_Sign_Action

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

4,进入项目点击setting,我们添加秘钥

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

5,创建2个秘钥

第一个秘钥JD_COOKIE,用来京东签到,必须!否则就没有意义了。

秘钥名:JD_COOKIE

秘钥值:我们获取的京东cookie

第二个秘钥PUSH_KEY,用来微信推送签到是否成功的消息

秘钥名:PUSH_KEY

秘钥值:server酱获取的sckey

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-17-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-18-1024x556.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-19-1024x587.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

6,添加完秘钥,点击“star”就可以自动运行

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

7,查看脚本执行状态

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-21-1024x441.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-22.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

8,脚本50秒左右执行完毕后,你的微信会收到推送消息,你查看消息详情,签到成功或失败的原因。

注:cookie过期,需要将JD_COOKIE秘钥update新的cookie

https://qnimg.ffing.cn/wp-content/uploads/2021/06/image-23.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-64.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-16.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-27.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 action-京东自动签到赚京豆
做运维看开发,呵呵呵。。。 0成本每天签到,白撸的开心不? 偶尔看到有大神的京东签到脚本,自己没有开发能力,不能保证脚本的安全性(github开源项目一般都是没问题,毕竟有能力…
扫描二维码继续阅读
2021-06-13