|
@@ -66,6 +66,12 @@ class Bot:
|
|
|
first_download_time = sheet[1][5]
|
|
|
first_download_time = int(time.mktime(time.strptime(first_download_time, "%Y/%m/%d %H:%M:%S")))
|
|
|
|
|
|
+ elif crawler == 'ssyy':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "ssyy", "59f11d")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ first_download_time = sheet[1][5]
|
|
|
+ first_download_time = int(time.mktime(time.strptime(first_download_time, "%Y/%m/%d %H:%M:%S")))
|
|
|
+
|
|
|
elif crawler == 'jxxf':
|
|
|
sheet = Feishu.get_values_batch(log_type, "jxxf", "d9e9b1")
|
|
|
# 已下载表,最新一条视频抓取时间
|
|
@@ -226,6 +232,12 @@ class Bot:
|
|
|
Feishu.bot(log_type, crawler, "好看_频道_已下载表,超过24小时没有新视频入库了😤")
|
|
|
Common.logger(log_type).warning("好看_频道_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
|
|
|
+ # 胜胜影音
|
|
|
+ elif crawler == "ssyy" and (
|
|
|
+ int(time.time()) - cls.get_first_time(log_type, crawler) > int(duration)):
|
|
|
+ Feishu.bot(log_type, crawler, "胜胜影音_已下载表,超过24小时没有新视频入库了😤")
|
|
|
+ Common.logger(log_type).warning("胜胜影音_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
+
|
|
|
# 吉祥幸福
|
|
|
elif crawler == "jxxf" and (
|
|
|
int(time.time()) - cls.get_first_time(log_type, crawler) > int(duration)):
|
|
@@ -340,6 +352,9 @@ class Bot:
|
|
|
Bot.robot_download_sheet("bot", "haokan_hot", duration)
|
|
|
Bot.robot_download_sheet("bot", "haokan_channel", duration)
|
|
|
|
|
|
+ Common.logger("bot").info("监控胜胜影音已下载表")
|
|
|
+ Bot.robot_download_sheet("bot", "ssyy", duration)
|
|
|
+
|
|
|
Common.logger("bot").info("监控吉祥幸福已下载表")
|
|
|
Bot.robot_download_sheet("bot", "jxxf", duration)
|
|
|
|
|
@@ -390,7 +405,7 @@ class Bot:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
- # Bot.robot_download_sheet("bot", "kdjsfq", 1)
|
|
|
+ # Bot.robot_download_sheet("bot", "ssyy", 1)
|
|
|
Bot.main()
|
|
|
|
|
|
pass
|