|
@@ -13,7 +13,8 @@ class Main:
|
|
|
@classmethod
|
|
|
def main(cls, log_type, env):
|
|
|
while True:
|
|
|
- if datetime.datetime.now().hour <= 8:
|
|
|
+ # if datetime.datetime.now().hour <= 8:
|
|
|
+ if 23 >= datetime.datetime.now().hour >= 17:
|
|
|
Common.logger(log_type).info('开始抓取"祝福大家好才是真好"\n')
|
|
|
Recommend.start_wechat(log_type, env)
|
|
|
Common.del_logs(log_type)
|