feat: 启动任务接口添加帖子/视频数量与评论数量覆盖支持

This commit is contained in:
钟保罗
2026-05-19 20:57:07 +08:00
parent f328ee35b5
commit ec432eb63e
4 changed files with 126 additions and 0 deletions

View File

@@ -225,6 +225,12 @@ class CrawlerManager:
cmd.extend(["--get_comment", "true" if config.enable_comments else "false"])
cmd.extend(["--get_sub_comment", "true" if config.enable_sub_comments else "false"])
if config.max_notes_count is not None:
cmd.extend(["--crawler_max_notes_count", str(config.max_notes_count)])
if config.max_comments_count is not None:
cmd.extend(["--max_comments_count_singlenotes", str(config.max_comments_count)])
if config.cookies:
cmd.extend(["--cookies", config.cookies])