使用 GitHub Actions 自动签到。
- 什么值得买: https://smzdm.com
- V2EX: https://v2ex.com
- 通过
钉钉群机器人
推送通知到钉钉群 - 通过
SERVERCHAN
推送简单的运行结果到微信 - 由
github actions
每日凌晨 8 点定时运行实测
0 23 * * *
最终的执行时间为凌晨 8:23
Fork
此项目,欢迎点star
~- 设置签到平台的 cookie 信息
2.1. Secret 新增SMZDM_COOKIE
,从什么值得买官网 提取的 cookie 信息。
2.2. Secret 新增V2EX_COOKIE
,从V2EX 官网 提取的 cookie 信息。 - (可选)通知
3.1. SERVERCHAN 通知:Secret 新增SERVERCHAN_SENDKEY
,获取方法请查看文档。
3.2. 钉钉群机器人通知:Secret 新增DINGTALK_ROBOT_SECRET
和DINGTALK_ROBOT_TOKEN
,获取方法请查看「钉钉机器人」。注意,需要加签。 Fork
后必须修改一下文件,才能执行定时任务, 可修改README.md
。
以下为例子
- 首先使用chrome浏览器,访问什么值得买官网, 登陆账号
- Windows系统可按
F12
快捷键打开开发者工具, Mac 快捷键option + command + i
- 选择开发者工具Network,刷新页面 ,选择第一个
www.smzdm.com
, 找到Requests Headers
里的Cookie
。
在 .github/check-in.yml
中
- cron: '0 0 * * *'
语法与 Linux 操作系统的 crontab 计划任务相同,具体可百度。因 GitHub Actions 为美西时间,+13 小时为**时间(即设置的时候需要 -13 小时)。
- 本项目参考了部分“签到”开源项目