Browse Source

1. 视频号测试上线

罗俊辉 1 year ago
parent
commit
ebe1dad8b3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      shipinhao/shipinhao_main/run_sph_author.py

+ 3 - 3
shipinhao/shipinhao_main/run_sph_author.py

@@ -101,7 +101,7 @@ def main(log_type, crawler, topic_name, group_id, env):
                             platform=crawler,
                             mode=log_type,
                             env=env,
-                            message="开始抓取视频号{}".format(user_dict["name"]),
+                            message="开始抓取视频号{}".format(user_dict["link"]),
                         )
                         # 初始化
                         SPHA = ShiPinHaoAccount(
@@ -117,7 +117,7 @@ def main(log_type, crawler, topic_name, group_id, env):
                             platform=crawler,
                             mode=log_type,
                             env=env,
-                            message="完成抓取视频号{}".format(user_dict["name"]),
+                            message="完成抓取视频号{}".format(user_dict["link"]),
                         )
                     except Exception as e:
                         AliyunLogger.logging(
@@ -125,7 +125,7 @@ def main(log_type, crawler, topic_name, group_id, env):
                             platform=crawler,
                             mode=log_type,
                             env=env,
-                            message="抓取视频号{}出现问题, 报错为{}".format(user_dict["name"], e),
+                            message="抓取视频号{}出现问题, 报错为{}".format(user_dict["link"], e),
                         )
 
                 AliyunLogger.logging(