mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-06-16 14:56:32 +08:00
Add more notify methods
This commit is contained in:
24
README.md
24
README.md
@@ -11,9 +11,13 @@
|
||||
|
||||
- `什么值得买`每日签到
|
||||
- 通过`pushplus`推送运行结果到微信
|
||||
- 通过`server酱`推送运行结果到微信
|
||||
- 通过`telegram bot`推送
|
||||
|
||||
## 2. 使用方法
|
||||
|
||||
### 2.1 Git action 运行
|
||||
|
||||
1. Fork[此仓库项目](https://github.com/Chasing66/smzdm_bot)>点击右上角 Fork 按钮即可, 欢迎点`star`~
|
||||
2. 修改 `.github/workflows/run.yml`里的下面部分, 取消注释,修改为你自己的时间
|
||||
|
||||
@@ -29,12 +33,20 @@ on:
|
||||
|
||||
3. Secret 新增`SMZDM_COOKIE`, 填入[什么值得买官网](https://www.smzdm.com/)获取的 Cookie 信息, [详见](#31-cookie获取方法)
|
||||
4. (可选) Secret 新增`PUSH_PLUS_TOKEN`用于推送通知, [详见](https://www.pushplus.plus/)
|
||||
5. 也可以在本地运行,通过设置环境变量
|
||||
5. (可选) Secret 新增`SC_KEY`用于推送通知, [详见](https://sct.ftqq.com/)
|
||||
6. (可选) Secret 新增`TG_BOT_TOKEN` 和`TG_USER_ID`用于推送通知
|
||||
|
||||
### 2.2 本地运行
|
||||
|
||||
1. 配置`config.toml`运行, 生成`config/config_example.toml`并按照需求配置
|
||||
|
||||
```bash
|
||||
export SMZDM_COOKIE=xxxx
|
||||
export PUSH_PLUS_TOKEN=xxxx
|
||||
```
|
||||
cp config/config_example.toml config/config.toml
|
||||
```
|
||||
|
||||
### 2.2 使用 Cookie Editor
|
||||
|
||||
也可以使用浏览器扩展 [Cookie Editor](https://microsoftedge.microsoft.com/addons/detail/cookie-editor/oaaopmblghnnjfgbgmflnkjkilhihdpb)导出 cookies, 另存为`cookies.json`在项目的根目录
|
||||
|
||||
## 3. 其它
|
||||
|
||||
@@ -43,7 +55,3 @@ export PUSH_PLUS_TOKEN=xxxx
|
||||
- 使用 Chrome 浏览器访问[什么值得买官网](https://www.smzdm.com/), 登录账号
|
||||
- 打开开发者工具 (Windows 快捷键`F12`, MacOS 快捷键`option + command + i`)
|
||||
- 选择 Network, 刷新页面, 选择第一个`www.smzdm.com`, 找到`Requests Headers`里的`Cookie`
|
||||
|
||||
#### 3.1.1 使用 Cookie Editor
|
||||
|
||||
也可以使用浏览器扩展 [Cookie Editor](https://microsoftedge.microsoft.com/addons/detail/cookie-editor/oaaopmblghnnjfgbgmflnkjkilhihdpb)导出 cookies, 另存为`cookies.json`在项目的根目录
|
||||
|
||||
Reference in New Issue
Block a user