Skip to content

Commit 4c9582e

Browse files
committed
Updated README
1 parent 8ddebb6 commit 4c9582e

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README_zh-cn.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
## 安装 pip 依赖
4242

4343
``` bash
44-
pip install selenium schedule requests
44+
pip install -r requirements.txt
4545
```
4646

4747
## 编辑配置文件
@@ -66,11 +66,28 @@ users = [
6666
'username': '20201234567',
6767
'password': '123456',
6868
'use_wechat': True,
69-
'uid': 'UID_ABCDEF0123456789abcdef012345'
69+
'uid': 'UID_ABCDEF0123456789abcdef012345',
70+
'vaccination_time': '2021-04-22',
71+
'in_shanghai': True
7072
}
7173
]
7274
```
7375

76+
#### 配置说明
77+
78+
- `use_wechat`
79+
是否对该用户使用微信推送
80+
81+
- `uid`
82+
[WxPusher](https://wxpusher.zjiecode.com/)
83+
`uid`,仅在 `use_wechat == True` 时有效
84+
85+
- `vaccination_time`
86+
接种时间
87+
88+
- `in_shanghai`
89+
近两周是否一直在上海
90+
7491
### 配置微信推送
7592

7693
如果你不使用微信推送,请将 `app_token` 设置为 `None`。事实上,当不使用微信推送时你可将该项设置为任意值。
@@ -81,11 +98,13 @@ users = [
8198

8299
### 更改定时时间
83100

84-
`scheduler.py` 中修改
101+
`config.py` 中修改
85102

86103
``` python
87-
schedule.every().day.at('00:30').do(job)
88-
schedule.every().day.at('07:30').do(job)
104+
report_times = [
105+
'00:30',
106+
'07:30'
107+
]
89108
```
90109

91110
以自定义报送时间。

0 commit comments

Comments
 (0)