Commit 1f4a799d authored by Yaowentong's avatar Yaowentong

修复

parent 817555ad
......@@ -300,36 +300,31 @@ def doubao_mobile_process_original_data(data):
url_list = new_url_list
print(suggestions)
print(search_keyword)
print(response_content)
print(rich_media_block)
print(len(url_list))
spider_save_tos.process_and_save_files(file_path, search_keyword, url_list, think_content, response_content,
suggestions, rich_media_block)
return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
except Exception as e:
traceback.print_exc()
# parts = file_path.split('/')
# platform = parts[2]
# task_id = parts[1]
# context, quote, suggestion, think, search_word = get_parse_sse_result(platform, task_id)
# if context:
# response_content = context
# url_list = quote
# suggestions = suggestion
# think_content = think
# search_keyword = search_word
# spider_save_tos.process_and_save_files_ai(file_path, search_keyword, url_list, think_content,
# response_content,suggestions)
#
# return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
# else:
# response_content = "对话信息获取失败:-200"
# robot_utils.feishu_tobot(file_path)
# spider_save_tos.process_and_save_files(file_path, search_keyword, url_list, think_content, response_content,
# suggestions, rich_media_block)
# return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
# traceback.print_exc()
parts = file_path.split('/')
platform = parts[2]
task_id = parts[1]
context, quote, suggestion, think, search_word = get_parse_sse_result(platform, task_id)
if context:
response_content = context
url_list = quote
suggestions = suggestion
think_content = think
search_keyword = search_word
spider_save_tos.process_and_save_files_ai(file_path, search_keyword, url_list, think_content,
response_content,suggestions)
return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
else:
response_content = "对话信息获取失败:-200"
robot_utils.feishu_tobot(file_path)
spider_save_tos.process_and_save_files(file_path, search_keyword, url_list, think_content, response_content,
suggestions, rich_media_block)
return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
if __name__ == '__main__':
......
......@@ -91,12 +91,7 @@ def qianwen_android_process_original_data(data):
if mime_type == 'multi_load/iframe' and multi_load_type == 'taoassistant_fold_product_feeds' and status == 'complete':
for mu in multi_load:
print(mu)
print('---')
print('---')
print('---')
print('---')
print('---')
if mu.get('type') == 'taoassistant_fold_product_feeds':
source_seq = mu.get('source_seq')
jump_url = next(
......@@ -213,7 +208,6 @@ def qianwen_android_process_original_data(data):
if url_list_batch:
url_list = url_list_batch
print(response_content)
spider_save_tos.process_and_save_files(file_path, search_keyword, url_list, think_content, response_content,
suggestions, rich_media_block)
return (file_path, search_keyword, url_list, think_content, response_content, suggestions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment