|
@@ -55,6 +55,17 @@ 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_hot':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "haokan", "5pWipX")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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_channel':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "haokan", "7f05d8")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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")
|
|
|
# 已下载表,最新一条视频抓取时间
|
|
@@ -194,6 +205,16 @@ class Bot:
|
|
|
Feishu.bot(log_type, crawler, "知乎_定向_已下载表,超过24小时没有新视频入库了😤")
|
|
|
Common.logger(log_type).warning("知乎_定向_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
|
|
|
+ # 好看视频
|
|
|
+ elif crawler == "haokan_hot" 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 == "haokan_channel" 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)):
|
|
@@ -295,6 +316,10 @@ class Bot:
|
|
|
Bot.robot_download_sheet("bot", "zhihu_hot", duration)
|
|
|
Bot.robot_download_sheet("bot", "zhihu_follow", duration)
|
|
|
|
|
|
+ Common.logger('bot').info('监控好看已下载表')
|
|
|
+ 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", "jxxf", duration)
|
|
|
|
|
@@ -341,7 +366,7 @@ class Bot:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
- # Bot.robot_download_sheet("bot", "zongjiao", 1)
|
|
|
+ # Bot.robot_download_sheet("bot", "haokan_channel", 1)
|
|
|
Bot.main()
|
|
|
|
|
|
pass
|