|
@@ -117,12 +117,12 @@ class GongzhonghaoFollow:
|
|
|
if r.json()["base_resp"]["err_msg"] == "invalid session" and 21 >= datetime.datetime.now().hour >= 10:
|
|
|
Common.logger(log_type, crawler).info(f"status_code:{r.status_code}")
|
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
|
- Feishu.bot(log_type, crawler, "token过期啦,请扫码更换\nhttps://mp.weixin.qq.com/")
|
|
|
+ Feishu.bot(log_type, crawler, "token过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
|
time.sleep(60 * 10)
|
|
|
elif r.json()["base_resp"]["err_msg"] == "freq control" and 21 >= datetime.datetime.now().hour >= 10:
|
|
|
Common.logger(log_type, crawler).info(f"status_code:{r.status_code}")
|
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
|
- Feishu.bot(log_type, crawler, "公众号频控啦,请扫码更换\nhttps://mp.weixin.qq.com/")
|
|
|
+ Feishu.bot(log_type, crawler, "公众号频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
time.sleep(60 * 10)
|
|
|
else:
|
|
|
break
|
|
@@ -237,12 +237,12 @@ class GongzhonghaoFollow:
|
|
|
if r.json()["base_resp"]["err_msg"] == "invalid session" and 21 >= datetime.datetime.now().hour >= 10:
|
|
|
Common.logger(log_type, crawler).info(f"status_code:{r.status_code}")
|
|
|
Common.logger(log_type, crawler).info(f"response:{r.text}")
|
|
|
- Feishu.bot(log_type, crawler, "token过期啦,请扫码更换\nhttps://mp.weixin.qq.com/")
|
|
|
+ Feishu.bot(log_type, crawler, "token过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
|
time.sleep(60 * 10)
|
|
|
elif r.json()["base_resp"]["err_msg"] == "freq control" and 21 >= datetime.datetime.now().hour >= 10:
|
|
|
Common.logger(log_type, crawler).info(f"status_code:{r.status_code}")
|
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
|
- Feishu.bot(log_type, crawler, "公众号频控啦,请扫码更换\nhttps://mp.weixin.qq.com/")
|
|
|
+ Feishu.bot(log_type, crawler, "公众号频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
time.sleep(60 * 10)
|
|
|
else:
|
|
|
break
|