|
@@ -72,6 +72,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 == 'ggdc':
|
|
|
+ sheet = Feishu.get_values_batch(log_type, 'ggdc', '070a67')
|
|
|
+ # 已下载表,最新一条视频抓取时间
|
|
|
+ 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")
|
|
|
# 已下载表,最新一条视频抓取时间
|
|
@@ -238,6 +244,12 @@ class Bot:
|
|
|
Feishu.bot(log_type, crawler, "胜胜影音_已下载表,超过24小时没有新视频入库了😤")
|
|
|
Common.logger(log_type).warning("胜胜影音_已下载表,超过24小时没有新视频入库了😤\n")
|
|
|
|
|
|
+ # 刚刚都传
|
|
|
+ elif crawler == "ggdc" 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,10 +352,6 @@ class Bot:
|
|
|
Bot.robot_download_sheet("bot", "xiaoniangao_person", duration)
|
|
|
Bot.robot_download_sheet("bot", "xiaoniangao_play", duration)
|
|
|
|
|
|
- # Common.logger("bot").info("监控西瓜视频已下载表")
|
|
|
- # Bot.robot_download_sheet("bot", "xigua_video", duration)
|
|
|
- # Bot.robot_download_sheet("bot", "xigua_little_video", duration)
|
|
|
-
|
|
|
Common.logger('bot').info('监控知乎已下载表')
|
|
|
Bot.robot_download_sheet("bot", "zhihu_hot", duration)
|
|
|
Bot.robot_download_sheet("bot", "zhihu_follow", duration)
|
|
@@ -352,18 +360,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)
|
|
|
|
|
|
- # Common.logger("bot").info("监控众妙音信已下载表")
|
|
|
- # Bot.robot_download_sheet("bot", "zmyx", duration)
|
|
|
-
|
|
|
- # Common.logger("bot").info("监控祝福猫已下载表")
|
|
|
- # Bot.robot_download_sheet("bot", "zhufumao", duration)
|
|
|
-
|
|
|
Common.logger("bot").info("监控岁岁年年迎福气已下载表")
|
|
|
Bot.robot_download_sheet("bot", "ssnnyfq", duration)
|
|
|
|
|
@@ -381,12 +380,27 @@ class Bot:
|
|
|
Bot.robot_download_sheet("bot", "weishi", duration)
|
|
|
|
|
|
Common.logger("bot").info("监控视频号已下载表")
|
|
|
- # Bot.robot_download_sheet("bot", "shipinhao_recommend", duration)
|
|
|
Bot.robot_download_sheet("bot", "shipinhao_follow", duration)
|
|
|
|
|
|
Common.logger("bot").info("监控宗教公众号已下载表")
|
|
|
Bot.robot_download_sheet("bot", "zongjiao", duration)
|
|
|
|
|
|
+ Common.logger("bot").info("刚刚都传已下载表")
|
|
|
+ Bot.robot_download_sheet("bot", "ggdc", duration)
|
|
|
+
|
|
|
+ # Common.logger("bot").info("监控众妙音信已下载表")
|
|
|
+ # Bot.robot_download_sheet("bot", "zmyx", duration)
|
|
|
+
|
|
|
+ # Common.logger("bot").info("监控祝福猫已下载表")
|
|
|
+ # Bot.robot_download_sheet("bot", "zhufumao", duration)
|
|
|
+
|
|
|
+ # Common.logger("bot").info("监控西瓜视频已下载表")
|
|
|
+ # Bot.robot_download_sheet("bot", "xigua_video", duration)
|
|
|
+ # Bot.robot_download_sheet("bot", "xigua_little_video", duration)
|
|
|
+
|
|
|
+ # Common.logger("bot").info("监控胜胜影音已下载表")
|
|
|
+ # Bot.robot_download_sheet("bot", "ssyy", duration)
|
|
|
+
|
|
|
# Common.logger("bot").info("监控公众号已下载表")
|
|
|
# Bot.robot_download_sheet("bot", "gzh", duration)
|
|
|
|
|
@@ -405,7 +419,7 @@ class Bot:
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
- # Bot.robot_download_sheet("bot", "ssyy", 1)
|
|
|
- Bot.main()
|
|
|
+ Bot.robot_download_sheet("bot", "ggdc", 1)
|
|
|
+ # Bot.main()
|
|
|
|
|
|
pass
|