|
@@ -282,7 +282,7 @@ class GZH:
|
|
|
|
|
|
# 获取所有用户的公众号文章信息
|
|
|
@classmethod
|
|
|
- def get_all_gzh(cls, log_type):
|
|
|
+ def get_all_gzh(cls, log_type, env):
|
|
|
try:
|
|
|
user_sheet = Feishu.get_values_batch(log_type, 'gzh', 'pxHL2C')
|
|
|
for i in range(3, len(user_sheet)):
|
|
@@ -291,7 +291,9 @@ class GZH:
|
|
|
head_url = user_sheet[i][3]
|
|
|
Common.logger(log_type).info("获取 {} 公众号文章\n", username)
|
|
|
cls.get_gzh_url(log_type, username, userid, head_url)
|
|
|
- Common.logger(log_type).info("休眠 3 - 60 分钟")
|
|
|
+ Common.logger(log_type).info("下载/上传 {} 公众号视频\n", username)
|
|
|
+ cls.run_download_publish(log_type, env)
|
|
|
+ Common.logger(log_type).info("休眠 3 - 30 分钟")
|
|
|
time.sleep(random.randint(60*3, 60*30))
|
|
|
except Exception as e:
|
|
|
Common.logger(log_type).error("get_all_gzh异常:{}\n", e)
|