Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

.\BroadTopicExtraction\main.py里面并没有实现--date参数,为什么要传参 #1

Description

@qualvey

 MindSpider ⚡ main ◉

uv run .\main.py
MindSpider AI爬虫项目
C:\Users\ryu\code\BettaFish.venv\Scripts\python.exe
项目路径: C:\Users\ryu\code\BettaFish\MindSpider
运行完整MindSpider工作流程...

开始完整的MindSpider工作流程
目标日期: 2025-11-05
平台列表: 所有支持的平台
测试模式: 否

=== 第一步:话题提取 ===

运行BroadTopicExtraction模块...
date: 2025-11-05, keywords_count: 100
执行命令: C:\Users\ryu\code\BettaFish.venv\Scripts\python.exe main.py --date 2025-11-05 --keywords 100
usage: main.py [-h]
[--sources {weibo,zhihu,bilibili-hot-search,toutiao,douyin,github-trending-today,coolapk,tieba,wallstreetcn,thepaper,cls-hot,xueqiu} [{weibo,zhihu,bilibili-hot-search,toutiao,douyin,github-trending-today,coolapk,tieba,wallstreetcn,thepaper,cls-hot,xueqiu} ...]]
[--keywords KEYWORDS] [--quiet] [--list-sources]
main.py: error: unrecognized arguments: --date 2025-11-05
BroadTopicExtraction模块执行失败,返回码: 2
话题提取失败,终止流程

来自main.py:189
`
cmd = [
sys.executable,
"main.py",
"--date", extract_date.strftime("%Y-%m-%d"),
"--keywords", str(keywords_count)
]

        print(f"执行命令: {' '.join(cmd)}")
        
        result = subprocess.run(
            cmd,
            cwd=self.broad_topic_path,
            timeout=1800  # 30分钟超时
        )

`
.\BroadTopicExtraction\main.py
def main():
"""主函数"""
parser = argparse.ArgumentParser(description="MindSpider每日话题提取工具")
parser.add_argument("--sources", nargs="+", help="指定新闻源平台",
choices=list(SOURCE_NAMES.keys()))
parser.add_argument("--keywords", type=int, default=100, help="最大关键词数量 (默认100)")
parser.add_argument("--quiet", action="store_true", help="简化输出模式")
parser.add_argument("--list-sources", action="store_true", help="显示支持的新闻源")

args = parser.parse_args()

这里面根本就没
实现--date参数。
是我没用对吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions