专注中国A股市场资讯查询。聚合热点要闻、科技媒体、证券网站、官方渠道等资讯,支持关键词包含/排除过滤(通过https://skillsmp.com/zh/skills/countbot-ai-countbot-skills-news-skill-md改造而成的)。
Scanned 9/11/2026
Install to Claude Code
npx -y skills add lxyeternal/MalSkillBench --skill news-market --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of News Market?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/lxyeternal-news-market)More formats (shields.io, HTML) on the badges page.
---
name: news_market
description: 专注中国A股市场资讯查询。聚合热点要闻、科技媒体、证券网站、官方渠道等资讯,支持关键词包含/排除过滤(通过https://skillsmp.com/zh/skills/countbot-ai-countbot-skills-news-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.fun`
- `https://rsshub.rssforever.com`
- `https://rsshub-7x3pyolbs.vercel.app`
- `https://rsshub.app` (官方源,可能需要代理)
各资讯分类的网络访问要求:都可直接访问。
## 命令行调用
```bash
# 获取热点新闻(默认)
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 调用场景
用户说"今天有什么新闻":
```bash
python3 skills/news_market/scripts/news_market.py hot --limit 60
```
用户想深入阅读某篇文章:
```bash
# 使用 --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
```
获取新闻后,整理为简洁的列表返回给用户,包含标题、来源和链接。英文内容可适当翻译摘要。
### 深入阅读策略
当用户想详细了解某篇新闻时,按以下优先级获取全文:
1. **首选:`--detail -1` 或 `--json`** — 直接从 RSS 源获取全文内容,无需额外网络请求
2. **备选:`web_fetch`** — 人民网、36氪等中文站点通常允许抓取
## 注意事项
- 纯 Python 标准库实现,无需额外依赖
- RSS 源可能因网站调整而失效,脚本会自动跳过失败的源
- 中文新闻源(人民网、澎湃、36氪等)通常允许 `web_fetch` 抓取详情页
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!