|
@@ -65,6 +65,11 @@ 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 == 'haokan_follow':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "haokan", "kVaSjf")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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")
|
|
@@ -237,6 +242,10 @@ class Bot:
|
|
|
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 == "haokan_follow" 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 == "ssyy" and (
|
|
@@ -359,6 +368,7 @@ class Bot:
|
|
|
Common.logger('bot').info('监控好看已下载表')
|
|
|
Bot.robot_download_sheet("bot", "haokan_hot", duration)
|
|
|
Bot.robot_download_sheet("bot", "haokan_channel", duration)
|
|
|
+ Bot.robot_download_sheet("bot", "haokan_follow", duration)
|
|
|
|
|
|
Common.logger("bot").info("监控吉祥幸福已下载表")
|
|
|
Bot.robot_download_sheet("bot", "jxxf", duration)
|