luojunhui 3 settimane fa
parent
commit
4146b784fa

+ 1 - 1
applications/config/task_chinese_name.py

@@ -1,6 +1,6 @@
 name_map = {
     "title_rewrite": "标题重写",
-    "crawler_gzh_articles": "公众号文章抓取",
+    "crawler_gzh_articles": "抓取公众号文章",
     "crawler_account_manager": "抓取账号管理",
     "article_pool_category_generation": "文章池品类生成",
     "candidate_account_quality_analysis": "候选账号质量分析",

+ 6 - 2
applications/utils/common.py

@@ -231,17 +231,21 @@ def get_task_chinese_name(data):
     # account_method
     if task_name == 'crawler_gzh_articles':
         account_method = data.get('account_method', '')
+        account_method = account_method.replace("account_association", "账号联想")
         crawl_mode = data.get('crawl_mode', '')
+        crawl_mode = crawl_mode.replace("search", "搜索").replace("account", "抓账号")
         strategy = data.get('strategy', '')
-        return f"{task_name_chinese}:模式:{crawl_mode}:{account_method}策略:{strategy}"
+        return f"{task_name_chinese}\t{crawl_mode}\t{account_method}\t{strategy}"
     elif task_name == 'article_pool_cold_start':
         platform = data.get('platform')
         platform = platform.replace('toutiao', '今日头条').replace("weixin", "微信")
         strategy = data.get('strategy')
         strategy = strategy.replace("strategy", "策略")
         category_list = data.get('category_list', [])
+        category_list = "、".join(category_list)
         crawler_methods = data.get('crawler_methods', [])
-        return f"{task_name_chinese}: 平台: {platform}; {strategy}: {'、'.join(crawler_methods)}{'、'.join(category_list)}"
+        crawler_methods = "、".join(crawler_methods)
+        return f"{task_name_chinese}\t{platform}\t{crawler_methods}\t{category_list}\t{strategy}"
     else:
         return task_name_chinese