← 返回 Skills 市场
1336
总下载
3
收藏
12
当前安装
8
版本数
在 OpenClaw 中安装
/install news-market
功能描述
专注中国A股市场资讯查询。聚合热点要闻、科技媒体、证券网站、官方渠道等资讯,支持关键词包含/排除过滤(通过https://skillsmp.com/zh/skills/countbot-ai-countbot-skills-news-skill-md改造而成的)。
使用说明 (SKILL.md)
新闻与资讯查询
通过 RSS 源和网页抓取获取热点要闻,支持关键词过滤。
支持的新闻分类
| 分类 | 参数值 | 来源 |
|---|---|---|
| 热点要闻 | hot |
人民网时政、新浪财经、36氪、财联社、雪球、观察者网、IT之家 |
| 科技媒体 | tech_media |
36氪、钛媒体、InfoQ、量子位、机器之心、新智元 |
| 证券网站 | securities |
东方财富、同花顺、雪球、富途牛牛 |
| 官方渠道 | official |
工信部、发改委 |
配置与网络要求
此技能开箱即用,无需申请 API Key。
RSSHub 镜像源说明:
默认优先使用 https://rss.injahow.cn (国内访问较快)。若该源失效,可在 scripts/news_market.py 中替换为以下备选源:
https://rss.shab.funhttps://rsshub.rssforever.comhttps://rsshub-7x3pyolbs.vercel.apphttps://rsshub.app(官方源,可能需要代理)
各资讯分类的网络访问要求:都可直接访问。
命令行调用
# 获取热点新闻(默认)
python3 skills/news_market/scripts/news_market.py hot
# 单关键词搜索(包含)
python3 skills/news_market/scripts/news_market.py hot --keyword AI
# 多关键词(包含/排除)
python3 skills/news_market/scripts/news_market.py hot --include ai,算力,人工智能,大模型 --exclude 招聘,课程,直播 --limit 20 --json
# 分类获取:科技媒体
python3 skills/news_market/scripts/news_market.py category --cat tech_media --limit 20
# 分类 + 只看 AI 或算力相关(建议同时加中文同义词)
python3 skills/news_market/scripts/news_market.py category --cat tech_media --include ai,算力,人工智能,大模型 --limit 20 --json
# 分类 + 不看 AI/算力相关
python3 skills/news_market/scripts/news_market.py category --cat tech_media --exclude ai,算力,人工智能,大模型 --limit 20 --json
# 控制摘要长度(默认 100 字符)
python3 skills/news_market/scripts/news_market.py hot --detail 500 # 显示 500 字符摘要
python3 skills/news_market/scripts/news_market.py hot --detail -1 # 显示全文
python3 skills/news_market/scripts/news_market.py hot --detail 0 # 不显示摘要
# 指定返回条数
python3 skills/news_market/scripts/news_market.py hot --limit 20
# JSON 格式输出(包含完整正文,不截断)
python3 skills/news_market/scripts/news_market.py hot --json
# 查看所有支持的分类和来源
python3 skills/news_market/scripts/news_market.py sources
AI 调用场景
用户说"今天有什么新闻":
python3 skills/news_market/scripts/news_market.py hot --limit 60
用户想深入阅读某篇文章:
# 使用 --detail -1 获取 RSS 全文内容
python3 skills/news_market/scripts/news_market.py hot --keyword "关键词" --detail -1 --limit 5
# 或使用 --json 获取完整 JSON(含全文)
python3 skills/news_market/scripts/news_market.py hot --keyword "关键词" --json --limit 5
获取新闻后,整理为简洁的列表返回给用户,包含标题、来源和链接。英文内容可适当翻译摘要。
深入阅读策略
当用户想详细了解某篇新闻时,按以下优先级获取全文:
- 首选:
--detail -1或--json— 直接从 RSS 源获取全文内容,无需额外网络请求 - 备选:
web_fetch— 人民网、36氪等中文站点通常允许抓取
注意事项
- 纯 Python 标准库实现,无需额外依赖
- RSS 源可能因网站调整而失效,脚本会自动跳过失败的源
- 中文新闻源(人民网、36氪等)通常允许
web_fetch抓取详情页
安全使用建议
This skill appears coherent and low-risk: it fetches RSS feeds and scrapes news pages using a bundled Python script and requires no secrets. Things to consider before installing: (1) the skill uses third‑party RSS mirror domains (rss.injahow.cn, rss.shab.fun, rsshub-7x3pyolbs.vercel.app, etc.); if you care about supply-chain/trust, review or replace those mirror URLs with sources you trust or the official RSSHub. (2) The skill performs outbound HTTP(S) requests to listed sites — these will reveal your agent's IP and may be blocked by some sites; run it behind a proxy if needed. (3) Confirm the remainder of the script (the truncated portion in the provided file) contains no unexpected network endpoints or file I/O before granting broad autonomous invocation. (4) Scraping may violate some sites' terms of service; use responsibly. If you want extra assurance, run the script in a sandboxed environment and inspect the full source for any hidden endpoints.
功能分析
Type: OpenClaw Skill
Name: news-market
Version: 1.1.9
The news-market skill is a legitimate news aggregation tool designed to fetch and filter Chinese market news from various RSS feeds and websites. The implementation in `scripts/news_market.py` uses only Python standard libraries (e.g., urllib, xml.etree, concurrent.futures) and lacks any indicators of malicious intent such as data exfiltration, unauthorized command execution, or obfuscation. The instructions in `SKILL.md` are consistent with the tool's functionality and do not contain prompt injection attacks against the AI agent.
能力评估
Purpose & Capability
Name/description match the included Python script and SKILL.md: the skill aggregates RSS and webpage sources for China A-share / tech / securities news. There are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
Instructions and script focus on fetching RSS feeds and extracting links/content from configured sites. A noteworthy point: the skill defaults to third‑party RSSHub mirror domains (e.g. rss.injahow.cn, rss.shab.fun, a vercel.app host). The SKILL.md also suggests editing the script to change these mirrors. Otherwise the instructions do not attempt to read local files, environment secrets, or send data to unexpected endpoints.
Install Mechanism
No install spec (instruction-only) and the included script is pure Python standard library; nothing is downloaded or written by an install step.
Credentials
No required environment variables, credentials, or config paths are declared or used in the visible code. The script makes outbound HTTP(S) requests only to the listed news/RSS sources and mirrors.
Persistence & Privilege
always:false (default) and no indication the skill modifies other skills or system settings. The skill can be invoked autonomously by the agent (platform default) but it does not request permanent elevated presence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install news-market - 安装完成后,直接呼叫该 Skill 的名称或使用
/news-market触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.9
No functional changes in this version.
- Documentation minor adjustment: removed “科技部” from官方渠道资讯分类,如今仅列举“工信部、发改委”。
- Clarified某些中文新闻源举例(如去除“澎湃”)以与说明更一致。
- No code or functional changes detected.
v1.1.8
news-market v1.0.0
- Initial release focused on China A-share market news aggregation
- Supports keyword inclusion/exclusion filters for news queries
- Integrates multiple sources: mainstream news, tech media, securities websites, and official channels
- Provides flexible command-line usage with options for category, keyword, output format, and summary length
- No API key required; works out-of-the-box using public RSSHub mirrors
- Implemented entirely in Python standard library with automatic RSS source fallback
v1.1.3
- 移除“投研机构”资讯类别,相关内容与命令已从文档中删除
- 精简和修正各新闻分类来源,部分来源列表内容调整
- 更新说明:所有资讯分类均默认可直接访问,无需代理
- 阅读策略部分删去“澎湃新闻”等站点,仅保留允许全文抓取的主流中文站点举例
- 其他文档描述简化和冗余内容精简
v1.1.2
news-market v1.1.1
- No code or documentation changes detected in this release.
- The functionality and usage remain unchanged from the previous version.
v1.1.1
news-market 1.1.1
- 更新文档,增加 RSSHub 镜像源说明和备用域名列表,提高国内访问的可用性和指引。
- 明确指出各分类在国内源失效时可能需要代理访问。
- 仅文档改进,未包含功能或代码变更。
v1.1.0
- Added _meta.json metadata file.
- Updated SKILL.md to clarify supported news categories and sources.
- Added a section on network access requirements for different news categories.
- Reorganized SKILL.md for improved readability by moving supported news categories earlier and condensing usage/configuration guidance.
- No functional changes to the skill’s code or interface.
v1.0.1
- 增加对多关键词过滤的支持,可指定包含/排除关键词
- 新增更多新闻分类,包括科技媒体、证券网站、投研机构、官方渠道等
- 命令行参数增加 --include 和 --exclude,支持复合过滤
- 分类与来源说明更详细,支持更灵活的筛选和调用场景
- 保持无需 API Key,纯标准库实现
v1.0.0
首次发布
元数据
常见问题
News Market 是什么?
专注中国A股市场资讯查询。聚合热点要闻、科技媒体、证券网站、官方渠道等资讯,支持关键词包含/排除过滤(通过https://skillsmp.com/zh/skills/countbot-ai-countbot-skills-news-skill-md改造而成的)。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1336 次。
如何安装 News Market?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install news-market」即可一键安装,无需额外配置。
News Market 是免费的吗?
是的,News Market 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
News Market 支持哪些平台?
News Market 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 News Market?
由 mc82465(@mc82465)开发并维护,当前版本 v1.1.9。
推荐 Skills