wangkun 2 年之前
父节点
当前提交
1097bddfcc
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      gongzhonghao/gongzhonghao_follow/gongzhonghao_follow.py
  2. 0 0
      video.mp4

+ 6 - 0
gongzhonghao/gongzhonghao_follow/gongzhonghao_follow.py

@@ -115,11 +115,14 @@ class GongzhonghaoFollow:
             r = requests.get(url=url, headers=headers, params=params, verify=False)
             while True:
                 if r.status_code != 200 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/")
                     time.sleep(60 * 10)
                 else:
                     break
             if "list" not in r.json() or len(r.json()["list"]) == 0:
+                Common.logger(log_type, crawler).info(f"status_code:{r.status_code}")
                 Common.logger(log_type, crawler).warning(f"get_fakeid:{r.text},休眠 1 秒\n")
                 time.sleep(1)
             else:
@@ -226,11 +229,14 @@ class GongzhonghaoFollow:
                 r = requests.get(url=url, headers=headers, params=params, verify=False)
                 while True:
                     if r.status_code != 200 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/")
                         time.sleep(60 * 10)
                     else:
                         break
                 if 'app_msg_list' not in r.json():
+                    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")
                     break
                 elif len(r.json()['app_msg_list']) == 0:

+ 0 - 0
video.mp4