[封面图]

封面图

初心:白嫖一些实物奖品

重要事项:python版本推荐3.8.0,运行脚本前安装好相关依赖包

【推荐阅读】

【工具类】免费ChatGPT资源收录

定时调度

  • 依赖Linux脚本执行
  • 依赖xxl-job【本人使用】
  • 腾讯云函数
  • 其他

pushplus

将自动签到的消息推送到微信

【效果如下】

5

【官网】https://www.pushplus.plus/

使用微信扫码登录,需要关注微信公众号(就是通过这个公众号来推送签到消息)

步骤(菜单):发送消息 -> 一对一消息 -> 复制token

3

【掘金】python脚本自动签到

【掘金】https://juejin.cn/

python自动签到脚本如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
from datetime import datetime
import time
import json
import sys

# 填写对应参数的值
data = {
'aid': '值1',
'uuid': '值2',
'_signature': '值3',
'cookie': '值4'
}

header = {
"cookie": data.get('cookie')
}

def sign_in():
"""
请求签到接口
:return:
"""
url = 'https://api.juejin.cn/growth_api/v1/check_in'
r = requests.post(url, data, headers=header)
print(r.text)
return json.loads(r.text)['err_msg']


def draw():
"""
签到后抽奖
:return:
"""
urlD = 'https://api.juejin.cn/growth_api/v1/lottery/draw'
dataD = {
'aid': data.get('aid'),
'uuid': data.get('uuid'),
}
r = requests.post(urlD, dataD, headers=header)
print(r.text)
return json.loads(r.text)['err_msg']


def start():
"""
启动任务
:return:
"""
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
sign_msg = sign_in()
time.sleep(10)
draw_msg = draw()
return "签到返回:" + sign_msg + '\n' + "抽奖返回:" + draw_msg

def send(str):
body = {
"token": '值5',
"title": '【xxx】掘金签到&抽奖结果',
"content": str
}
r = requests.post('http://www.pushplus.plus/send', data=body)
print(json.loads(r.text))



if __name__ == "__main__":
str = start()
send(str)
exit(0)

上面有5个值需要我们自己输入,值内容获取方法如图:

  1. 进入网址:https://juejin.cn/user/center/signin?from=avatar_menu
  2. 按F12
  3. 搜索check,选择对应的请求

1
2
3v

【墨天轮】python脚本自动签到

【墨天轮】https://www.modb.pro/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
from datetime import datetime
import time
import json
import sys


# 填写对应参数的值
data = {
'cookie': '值1'
}

header = {
"cookie": data.get('cookie')
}

def sign_in():
"""
请求签到接口
:return:
"""
url = 'https://www.modb.pro/api/user/checkIn'
r = requests.post(url, data, headers=header)
# print(r.text)
return json.loads(r.text)['operateMessage']

def start():
"""
启动任务
:return:
"""
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
sign_msg = sign_in()
time.sleep(10)
return "签到返回:" + sign_msg

def send(str):
body = {
"token": '值2',
"title": '【xxx】墨天轮签到',
"content": str
}
r = requests.post('http://www.pushplus.plus/send', data=body)
print(json.loads(r.text))

if __name__ == "__main__":
str = start()
send(str)
exit(0)

上面有2个值需要我们自己输入,值2使用上面获取到的pushplus的token值,值1内容获取方法如图:

  1. 进入网址:https://www.modb.pro/point/signin
  2. 按F12
  3. 选择detail

4

题外话

欢迎大家加入我的纯技术摸鱼群,另外如果对ChatGPT感兴趣,也可以加入我的ChatGPT讨论群,里面会定期分享免费ChatGPT资源。如果群二维码过期了,也可以添加下面我的个人微信。

摸鱼群

moyu

ChatGPT讨论小组

【工具类】免费ChatGPT资源收录

chatgpt-group

个人微信

wechat