mcpField
A
aggregating-crypto-news

aggregating-crypto-news

github.com/jeremylongshore生产力2.9k237 次安装2 天前更新
代码仓库

关于 aggregating-crypto-news

aggregating-crypto-news 是一项通过 RSS 聚合加密货币新闻的技能,可从 50 多个来源扫描资讯,并按币种、类别、时间范围筛选和排序。适合需要定期监测市场新闻并导出结果的用户。

主要功能

  1. 01从 50 多个来源聚合 RSS 新闻
  2. 02按币种、类别和时间筛选
  3. 03按相关性评分排序
  4. 04导出 JSON 格式结果

适用场景

  1. 01追踪 BTC 等特定币种的新闻
  2. 02监测 DeFi 等类别资讯
  3. 03获取近期市场动态并导出

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill aggregating-crypto-news

安装后在 Claude Code 中输入/aggregating-crypto-news确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

ARD.md
PRD.md
config/
settings.yaml
sources.yaml
references/
errors.md
examples.md
implementation.md
scripts/
feed_fetcher.py
feed_parser.py
formatters.py
news_aggregator.py
scorer.py

详细介绍

聚合加密货币新闻

概述

通过 RSS 订阅源从 50 多个权威来源聚合加密货币新闻,支持实时扫描、币种/类别筛选和相关性评分。

前提条件

  1. 已安装 Python 3.8+
  2. 依赖项:pip install feedparser requests
  3. 可连接互联网以访问 RSS 订阅源

操作说明

  1. 评估用户意图——确定所需筛选条件:

    • 综合新闻:不设筛选条件,使用默认设置
    • 特定币种:提取代币符号(BTC、ETH 等)
    • 特定类别:提取类别(defi、nft、regulatory 等)
    • 特定时间:提取时间范围(1h、4h、24h、7d)
  2. 运行聚合器,并设置适当的筛选条件:

    # 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
    
  3. 导出结果,供后续处理:

    python ${CLAUDE_SKILL_DIR}/scripts/news_aggregator.py --format json --output news.json
    
  4. 向用户展示结果:

    • 显示来源、标题、发布时间和相关性评分
    • 如有影响市场的关键词,则突出显示
    • 提供完整文章的链接
    • 总结元信息(已检查的来源数、找到的文章数)

输出

按相关性评分(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