File tree 1 file changed +24
-5
lines changed
1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 41
41
## 安装 pip 依赖
42
42
43
43
``` bash
44
- pip install selenium schedule requests
44
+ pip install -r requirements.txt
45
45
```
46
46
47
47
## 编辑配置文件
@@ -66,11 +66,28 @@ users = [
66
66
' username' : ' 20201234567' ,
67
67
' password' : ' 123456' ,
68
68
' use_wechat' : True ,
69
- ' uid' : ' UID_ABCDEF0123456789abcdef012345'
69
+ ' uid' : ' UID_ABCDEF0123456789abcdef012345' ,
70
+ ' vaccination_time' : ' 2021-04-22' ,
71
+ ' in_shanghai' : True
70
72
}
71
73
]
72
74
```
73
75
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
+
74
91
### 配置微信推送
75
92
76
93
如果你不使用微信推送,请将 ` app_token ` 设置为 ` None ` 。事实上,当不使用微信推送时你可将该项设置为任意值。
@@ -81,11 +98,13 @@ users = [
81
98
82
99
### 更改定时时间
83
100
84
- 在 ` scheduler .py` 中修改
101
+ 在 ` config .py` 中修改
85
102
86
103
``` 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
+ ]
89
108
```
90
109
91
110
以自定义报送时间。
You can’t perform that action at this time.
0 commit comments