Install
openclaw skills install report-search搜索并提取fxbaogao.com上的研报,支持按关键词、机构、作者和时间筛选,并提供报告摘要和正文阅读。
openclaw skills install report-search这个 skill 面向 Claude Code 和 OpenClaw,默认使用本 skill 自带脚本。
运行脚本时,脚本路径要相对当前 SKILL.md 所在目录解析,不要假设当前工作目录正好在 skill 目录内。
优先运行:
python3 scripts/search_reports.py "人工智能" --json
常见参数:
--author 张三,可重复传多次--org 中信证券,可重复传多次--time last7day|last1mon|last3mon|last1year--start-date 2025-01-01 --end-date 2025-03-31--size 10不要把相对时间自行换算后塞进 end_time;脚本会按 fxbaogao_mcp 的方式把 last1mon 这类值原样传给接口。
当用户指定序号或 doc_id 后,运行:
python3 scripts/get_report_content.py 5288801 --json
scripts/search_reports.py ... --json。doc_id、机构、日期和链接。scripts/get_report_content.py DOC_ID --json。summary_sections,再按需引用 content 中的正文段落。search_reports.py --json 返回:
totalreports[]report 含 doc_id、title、org_name、authors、publish_datereport_url、detail_urlsnippetsget_report_content.py --json 返回:
doc_id、title、org_name、authors、publish_datereport_url、detail_urlsummary_sectionssummarycontentraw_contentsummary_sections,不要直接整段倾倒长正文https://www.fxbaogao.com/view?id=DOC_ID,不要返回 public.fxbaogao.com 直链api.fxbaogao.com 和 www.fxbaogao.comFXBAOGAO_SSL_NO_VERIFY=1 重试,但不要默认关闭 SSL 校验python3 scripts/search_reports.py "人工智能" --time last1mon --json
python3 scripts/search_reports.py "半导体" --org "中信证券" --org "华泰证券" --size 20 --json
python3 scripts/search_reports.py "新能源" --start-date 2025-01-01 --end-date 2025-03-31 --json
python3 scripts/get_report_content.py 5288801 --json
更多示例见 examples/sample.md。