某打卡软件自动化脚本
0. 打开腾讯云
➡️ 点击直达
1. 点击免费注册
按照流程完成注册
2. 完成个人实名认证
➡️ 实名认证
3. 打开云函数
➡️ 云函数
首次使用需要授权,按照指引点击即可
4. 进入云函数,分别点击函数服务
和新建
5. 自定义创建
函数
6. 函数处内容
其中需要自助填写的参数有:
username
password
home
location
location查看方式
1 | import requests |
7. 分别点击部署
和测试
8. 查看执行摘要,如果执行成功,返回结果为complete
,如果失败则为false
9. 设置触发器
10. 点击创建触发器
11. 设置触发器
触发周期使用
自定义触发器
常用的
Cron
表达式:
- 每天九点打卡:
1 0 0 9 * * * *
- 每天8,10点打卡
1 0 0 8,10 * * * *更多:Cron表达式
附录:在校期间早中晚打卡
0. 云函数代码
1 | import requests |
PS:可无限添加用户数,格式
1
2
3
4
5
6
7
8
9
10
11 {
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
},
{
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
}
……触发器:设置方法点击查看
0. 云函数代码
1 | import requests |
PS:可无限添加用户数,格式
1
2
3
4
5
6
7
8
9
10
11 {
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
},
{
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
}
……触发器:设置方法点击查看
0. 云函数代码
1 | import requests |
PS:可无限添加用户数,格式
1
2
3
4
5
6
7
8
9
10
11 {
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
},
{
'username': '', # 学号
'password': '', # 密码
'type': 'student' # 默认为student勿动
}
……触发器:设置方法点击查看
至此自动打卡设置完成