|
@@ -118,19 +118,19 @@ class GongzhonghaoFollow:
|
|
if r.json()["base_resp"]["err_msg"] == "invalid session" and 21 >= datetime.datetime.now().hour >= 10:
|
|
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"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
- Feishu.bot(log_type, crawler, "token_1过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler, "token_1过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
elif r.json()["base_resp"]["err_msg"] == "freq control" and 21 >= datetime.datetime.now().hour >= 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).info(f"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
- Feishu.bot(log_type, crawler, "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler, "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
elif "list" not in r.json() or len(r.json()["list"]) == 0 and 21 >= datetime.datetime.now().hour >= 10:
|
|
elif "list" not in r.json() or len(r.json()["list"]) == 0 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"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
- Feishu.bot(log_type, crawler, "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler, "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system(
|
|
os.system(
|
|
"ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
"ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
@@ -244,21 +244,20 @@ class GongzhonghaoFollow:
|
|
"err_msg"] == "invalid session" and 21 >= datetime.datetime.now().hour >= 10:
|
|
"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"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).info(f"response:{r.text}")
|
|
Common.logger(log_type, crawler).info(f"response:{r.text}")
|
|
- Feishu.bot(log_type, crawler, "token_1过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler, "token_1过期啦,请扫码更换token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
elif r.json()["base_resp"][
|
|
elif r.json()["base_resp"][
|
|
"err_msg"] == "freq control" and 21 >= datetime.datetime.now().hour >= 10:
|
|
"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).info(f"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
- Feishu.bot(log_type, crawler,"公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler,"公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
os.system("ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
elif 'app_msg_list' not in r.json() and 21 >= datetime.datetime.now().hour >= 10:
|
|
elif 'app_msg_list' not in r.json() 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"status_code:{r.status_code}")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
Common.logger(log_type, crawler).warning(f"get_gzh_url:{r.text}\n")
|
|
- Feishu.bot(log_type, crawler,
|
|
|
|
- "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
|
|
|
|
+ # Feishu.bot(log_type, crawler, "公众号_1频控啦,请扫码更换其他公众号token\nhttps://mp.weixin.qq.com/")
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
os.system(
|
|
os.system(
|
|
"ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|
|
"ps aux | grep run_gongzhonghao_follow.py | grep -v grep | awk '{print $2}' | xargs kill -9")
|