|
@@ -13,34 +13,7 @@ from config import long_articles_config, apolloConfig
|
|
config = apolloConfig()
|
|
config = apolloConfig()
|
|
const = SingleVideoPoolPublishTaskConst()
|
|
const = SingleVideoPoolPublishTaskConst()
|
|
|
|
|
|
-# video_pool_config = json.loads(config.getConfigValue(key="video_pool_publish_config"))
|
|
|
|
-video_pool_config = {
|
|
|
|
- "sph": {
|
|
|
|
- "nick_name": "视频号",
|
|
|
|
- "process_num_each_day": 218,
|
|
|
|
- "generate_plan_id": "20250325025917853810062"
|
|
|
|
- },
|
|
|
|
- "gzh": {
|
|
|
|
- "nick_name": "公众号",
|
|
|
|
- "process_num_each_day": 201,
|
|
|
|
- "generate_plan_id": "20250324132413116896899"
|
|
|
|
- },
|
|
|
|
- "toutiao": {
|
|
|
|
- "nick_name": "头条号",
|
|
|
|
- "process_num_each_day": 411,
|
|
|
|
- "generate_plan_id": "20250324132226090387919"
|
|
|
|
- },
|
|
|
|
- "hksp": {
|
|
|
|
- "nick_name": "好看视频",
|
|
|
|
- "process_num_each_day": 165,
|
|
|
|
- "generate_plan_id": "20250325025446821867933"
|
|
|
|
- },
|
|
|
|
- "sohu": {
|
|
|
|
- "nick_name": "搜狐",
|
|
|
|
- "process_num_each_day": 100,
|
|
|
|
- "generate_plan_id": "20250409083938381788492"
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+video_pool_config = json.loads(config.getConfigValue(key="video_pool_publish_config"))
|
|
|
|
|
|
|
|
|
|
class PublishSingleVideoPoolVideos:
|
|
class PublishSingleVideoPoolVideos:
|
|
@@ -79,7 +52,7 @@ class PublishSingleVideoPoolVideos:
|
|
"""
|
|
"""
|
|
entrance of this class
|
|
entrance of this class
|
|
"""
|
|
"""
|
|
- platform_list = ["sohu"]
|
|
|
|
|
|
+ platform_list = ["sph", "gzh", "toutiao", "hksp", "sohu"]
|
|
for platform in tqdm(platform_list, desc='process each platform'):
|
|
for platform in tqdm(platform_list, desc='process each platform'):
|
|
task_list = self.get_task_list(platform)
|
|
task_list = self.get_task_list(platform)
|
|
task_id_tuple = tuple([task['id'] for task in task_list])
|
|
task_id_tuple = tuple([task['id'] for task in task_list])
|
|
@@ -141,7 +114,4 @@ class PublishSingleVideoPoolVideos:
|
|
'msg': '该平台无待发布视频,请关注供给的抓取'
|
|
'msg': '该平台无待发布视频,请关注供给的抓取'
|
|
},
|
|
},
|
|
mention=False
|
|
mention=False
|
|
- )
|
|
|
|
-
|
|
|
|
-if __name__ == '__main__':
|
|
|
|
- PublishSingleVideoPoolVideos().deal()
|
|
|
|
|
|
+ )
|