fix(store): 修复存储实现的AsyncFileWriter导入

重构小红书存储实现,将store_comments方法改为处理单个评论的store_comment
为多个平台添加AsyncFileWriter工具类导入
This commit is contained in:
persist-1
2025-09-06 04:41:37 +08:00
parent be306c6f54
commit e92c6130e1
5 changed files with 12 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ from database.db_session import get_session
from database.models import ZhihuContent, ZhihuComment, ZhihuCreator
from tools import utils, words
from var import crawler_type_var
from tools.async_file_writer import AsyncFileWriter
def calculate_number_of_files(file_store_path: str) -> int:
"""计算数据保存文件的前部分排序数字,支持每次运行代码不写到同一个文件中