关于 aggregating-crypto-news
aggregating-crypto-news 是一项通过 RSS 聚合加密货币新闻的技能,可从 50 多个来源扫描资讯,并按币种、类别、时间范围筛选和排序。适合需要定期监测市场新闻并导出结果的用户。
主要功能
- 01从 50 多个来源聚合 RSS 新闻
- 02按币种、类别和时间筛选
- 03按相关性评分排序
- 04导出 JSON 格式结果
适用场景
- 01追踪 BTC 等特定币种的新闻
- 02监测 DeFi 等类别资讯
- 03获取近期市场动态并导出
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ jeremylongshore/ tons-of-skills-marketplace --skill aggregating-crypto-news安装后在 Claude Code 中输入/aggregating-crypto-news确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
ARD.mdPRD.mdconfig/settings.yamlsources.yamlreferences/errors.mdexamples.mdimplementation.mdscripts/feed_fetcher.pyfeed_parser.pyformatters.pynews_aggregator.pyscorer.py详细介绍
聚合加密货币新闻
概述
通过 RSS 订阅源从 50 多个权威来源聚合加密货币新闻,支持实时扫描、币种/类别筛选和相关性评分。
前提条件
- 已安装 Python 3.8+
- 依赖项:
pip install feedparser requests - 可连接互联网以访问 RSS 订阅源
操作说明
-
评估用户意图——确定所需筛选条件:
- 综合新闻:不设筛选条件,使用默认设置
- 特定币种:提取代币符号(BTC、ETH 等)
- 特定类别:提取类别(defi、nft、regulatory 等)
- 特定时间:提取时间范围(1h、4h、24h、7d)
-
运行聚合器,并设置适当的筛选条件:
# Default scan (top 20, past 24h, relevance sorted) python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py # Coin-specific scan python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --coin BTC --period 4h # Category filter python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --category defi --top 30 # Multiple filters python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --coin ETH --category defi --period 24h --top 15 -
导出结果,供后续处理:
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --format json --output news.json -
向用户展示结果:
- 显示来源、标题、发布时间和相关性评分
- 如有影响市场的关键词,则突出显示
- 提供完整文章的链接
- 总结元信息(已检查的来源数、找到的文章数)
输出
按相关性评分(0–100)排序的文章表格。评分基于影响市场的关键词检测、来源权威性和时效性:
==============================================================================
CRYPTO NEWS AGGREGATOR Updated: 2026-01-14 15:30 # 2026 - current year timestamp
==============================================================================
TOP CRYPTO NEWS (24h)
------------------------------------------------------------------------------
Rank Source Title Age Score
------------------------------------------------------------------------------
1 CoinDesk Bitcoin Breaks $100K ATH 2h 95.0
2 The Block SEC Approves ETH ETF 4h 92.5
3 Decrypt Solana DeFi TVL Surges 6h 78.3
------------------------------------------------------------------------------
Summary: 20 articles shown | Scanned: 50 sources | Matched: 187
==============================================================================
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 网络超时 | 无法访问 RSS 订阅源 | 使用缓存数据;跳过不可用的来源 |
| 解析错误 | RSS 格式错误 | 跳过该条目;继续处理有效文章 |
| 无结果 | 筛选条件过严 | 建议放宽筛选条件 |
| 无效币种 | 未知符号 | 列出相似的有效符号 |
请参阅 ${CLAUDE_SKILL_DIR}/references/errors.md,了解全面的错误处理信息。
示例
适用于常见新闻监控场景的筛选模式:
# Latest crypto news (defaults)
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py
# Bitcoin news from past 4 hours
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --coin BTC --period 4h
# DeFi category news
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --category defi
# High-relevance news only
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --min-score 70 --top 10
# Multiple coins
python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --coins BTC,ETH,SOL
资源
${CLAUDE_SKILL_DIR}/references/implementation.md- CLI 选项、类别、JSON 格式和高级筛选${CLAUDE_SKILL_DIR}/references/errors.md- 全面的错误处理信息${CLAUDE_SKILL_DIR}/references/examples.md- 详细用法示例${CLAUDE_SKILL_DIR}/config/sources.yaml- 完整来源列表- CoinDesk RSS:https://www.coindesk.com/arc/outboundfeeds/rss/
- feedparser 文档:https://feedparser.readthedocs.io/
评论
支持 Markdown