Browse Source

抖音、快手增加日志

zhangyong 1 year ago
parent
commit
cf39296847

+ 1 - 0
douyin/douyin_author/douyin_author_scheduling_new.py

@@ -280,6 +280,7 @@ class DouyinauthorScheduling:
                             if limit_flag:
                                 mq.send_msg(video_dict)
                                 cls.download_cnt += 1
+                                AliyunLogger.logging(code="1002", message="成功发送至 ETL", data=video_dict)
 
                 except Exception as e:
                     Common.logger(log_type, crawler).warning(f"抓取单条视频异常:{e}\n")

+ 1 - 1
kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

@@ -360,7 +360,7 @@ class KuaishouauthorScheduling:
                         time.sleep(0.5)
                         Feishu.update_values('kuaishou', 'kuaishou', "ue0rAF", "A2:Z2", values)
                         cls.download_cnt += 1
-
+                        AliyunLogger.logging(code="1002", message="成功发送至 ETL", data=video_dict)
                 except Exception as e:
                     Common.logger(log_type, crawler).warning(f"抓取单条视频异常:{e}\n")
                     AliyunLogger.logging(