|
@@ -138,6 +138,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 == 'ssnnyfq':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "ssnnyfq", "290bae")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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 == "kanyikan":
|
|
|
sheet = Feishu.get_values_batch(log_type, "kanyikan", "20ce0c")
|
|
|
# 已下载表,最新一条视频抓取时间
|
|
@@ -259,6 +265,12 @@ class Bot:
|
|
|
Feishu.bot(log_type, crawler, "众妙音信_已下载表,超过24小时没有新视频入库了😤")
|
|
|
Common.logger(log_type).warning("众妙音信_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
|
|
|
+ # 岁岁年年迎福气
|
|
|
+ elif crawler == "ssnnyfq" 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 == "music_album" and (
|
|
|
int(time.time()) - cls.get_first_time(log_type, crawler) > int(duration)):
|
|
@@ -335,6 +347,9 @@ class Bot:
|
|
|
Common.logger("bot").info("监控众妙音信已下载表")
|
|
|
Bot.robot_download_sheet("bot", "zmyx", duration)
|
|
|
|
|
|
+ Common.logger("bot").info("监控岁岁年年迎福气已下载表")
|
|
|
+ Bot.robot_download_sheet("bot", "ssnnyfq", duration)
|
|
|
+
|
|
|
Common.logger("bot").info("监控本山祝福已下载表")
|
|
|
Bot.robot_download_sheet("bot", "bszf", duration)
|
|
|
|
|
@@ -366,7 +381,7 @@ class Bot:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
# Bot.robot_download_sheet("bot", "kuaishou_recommend", 1)
|
|
|
- # Bot.robot_download_sheet("bot", "zmyx", 1)
|
|
|
+ # Bot.robot_download_sheet("bot", "ssnnyfq", 1)
|
|
|
Bot.main()
|
|
|
|
|
|
pass
|