|
@@ -126,6 +126,18 @@ 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 == 'jxxf':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "jxxf", "d9e9b1")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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 == 'zmyx':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, "zmyx", "19c772")
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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")
|
|
|
# 已下载表,最新一条视频抓取时间
|
|
@@ -235,6 +247,18 @@ class Bot:
|
|
|
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)):
|
|
|
+ Feishu.bot(log_type, crawler, "吉祥幸福_已下载表,超过24小时没有新视频入库了😤")
|
|
|
+ Common.logger(log_type).warning("吉祥幸福_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
+
|
|
|
+ # 众妙音信
|
|
|
+ elif crawler == "zmyx" 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)):
|
|
@@ -305,6 +329,12 @@ 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", "jxxf", duration)
|
|
|
+
|
|
|
+ Common.logger("bot").info("监控众妙音信已下载表")
|
|
|
+ Bot.robot_download_sheet("bot", "zmyx", duration)
|
|
|
+
|
|
|
Common.logger("bot").info("监控本山祝福已下载表")
|
|
|
Bot.robot_download_sheet("bot", "bszf", duration)
|
|
|
|
|
@@ -336,7 +366,7 @@ class Bot:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
# Bot.robot_download_sheet("bot", "kuaishou_recommend", 1)
|
|
|
- # Bot.robot_download_sheet("bot", "zhihu_follow", 1)
|
|
|
+ # Bot.robot_download_sheet("bot", "zmyx", 1)
|
|
|
Bot.main()
|
|
|
|
|
|
pass
|