aggregating-crypto-news

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Aggregating Crypto News

加密货币新闻聚合

Overview

概述

This skill aggregates cryptocurrency news from 50+ authoritative sources using RSS feeds. It provides real-time news scanning with filtering by coin, category, time window, and relevance scoring.
Key Capabilities:
  • Multi-source aggregation from top crypto news sites
  • Coin-specific filtering (BTC, ETH, SOL, etc.)
  • Category filtering (DeFi, NFT, regulatory, exchange, etc.)
  • Relevance scoring with market-moving keyword detection
  • Multiple output formats (table, JSON, CSV)
本Skill利用RSS源聚合来自50+权威来源的加密货币新闻。它支持实时新闻扫描,并可按币种、分类、时间窗口和相关性评分进行筛选。
核心功能:
  • 聚合顶级加密货币新闻网站的多源内容
  • 特定币种筛选(BTC、ETH、SOL等)
  • 分类筛选(DeFi、NFT、监管、交易所等)
  • 结合影响市场的关键词检测进行相关性评分
  • 多种输出格式(表格、JSON、CSV)

Prerequisites

前置条件

Before using this skill, ensure:
  1. Python 3.8+ is installed
  2. feedparser library is available:
    pip install feedparser
  3. requests library is available:
    pip install requests
  4. Internet connectivity for RSS feed access
使用本Skill前,请确保:
  1. 已安装Python 3.8+
  2. 已安装feedparser库:
    pip install feedparser
  3. 已安装requests库:
    pip install requests
  4. 具备互联网连接以访问RSS源

Instructions

使用说明

Step 1: Assess User Intent

步骤1:评估用户意图

Determine what the user is looking for:
  • General news: No specific filters, use defaults
  • Coin-specific: Extract coin symbol (BTC, ETH, etc.)
  • Category-specific: Extract category (defi, nft, regulatory, etc.)
  • Time-specific: Extract time window (1h, 4h, 24h, 7d)
确定用户的需求:
  • 通用新闻:无特定筛选条件,使用默认设置
  • 特定币种:提取币种符号(BTC、ETH等)
  • 特定分类:提取分类(defi、nft、regulatory等)
  • 特定时间:提取时间窗口(1h、4h、24h、7d)

Step 2: Execute News Aggregation

步骤2:执行新闻聚合

Run the news aggregator with appropriate filters:
bash
undefined
使用合适的筛选条件运行新闻聚合器:
bash
undefined

Default scan (top 20, past 24h, relevance sorted)

默认扫描(前20条,过去24小时,按相关性排序)

python {baseDir}/scripts/news_aggregator.py
python {baseDir}/scripts/news_aggregator.py

Coin-specific scan

特定币种扫描

python {baseDir}/scripts/news_aggregator.py --coin BTC --period 4h
python {baseDir}/scripts/news_aggregator.py --coin BTC --period 4h

Category filter

分类筛选

python {baseDir}/scripts/news_aggregator.py --category defi --top 30
python {baseDir}/scripts/news_aggregator.py --category defi --top 30

Export to JSON

导出为JSON格式

python {baseDir}/scripts/news_aggregator.py --format json --output news.json
python {baseDir}/scripts/news_aggregator.py --format json --output news.json

Multiple filters

多条件筛选

python {baseDir}/scripts/news_aggregator.py --coin ETH --category defi --period 24h --top 15
undefined
python {baseDir}/scripts/news_aggregator.py --coin ETH --category defi --period 24h --top 15
undefined

Step 3: Present Results

步骤3:展示结果

Format and present the news to the user:
  • Show source, title, age, and relevance score
  • Highlight market-moving keywords if present
  • Provide links for full articles
  • Summarize meta information (sources checked, articles found)
格式化并向用户展示新闻:
  • 显示来源、标题、发布时长和相关性评分
  • 突出显示影响市场的关键词(如果有)
  • 提供完整文章的链接
  • 汇总元信息(已扫描来源数、已找到文章数)

Command-Line Options

命令行选项

OptionDescriptionDefault
--coin
Filter by coin symbol (BTC, ETH, etc.)None
--coins
Filter by multiple coins (comma-separated)None
--category
Filter by categoryNone
--period
Time window (1h, 4h, 24h, 7d)24h
--top
Number of results to return20
--min-score
Minimum relevance score0
--format
Output format (table, json, csv)table
--output
Output file pathstdout
--sort-by
Sort by (relevance, recency)relevance
--verbose
Enable verbose outputfalse
选项描述默认值
--coin
按币种符号筛选(BTC、ETH等)None
--coins
按多个币种筛选(逗号分隔)None
--category
按分类筛选None
--period
时间窗口(1h、4h、24h、7d)24h
--top
返回结果数量20
--min-score
最低相关性评分0
--format
输出格式(table、json、csv)table
--output
输出文件路径stdout
--sort-by
排序依据(relevance、recency)relevance
--verbose
启用详细输出false

Categories Available

可用分类

  • market
    : General market news, price movements
  • defi
    : DeFi protocols, yield farming, DEXes
  • nft
    : NFT projects, marketplaces, collections
  • regulatory
    : Government, SEC, legal developments
  • layer1
    : L1 blockchain news (Ethereum, Solana, etc.)
  • layer2
    : L2 scaling solutions (Arbitrum, Optimism, etc.)
  • exchange
    : Exchange news, listings, delistings
  • security
    : Hacks, exploits, vulnerabilities
  • market
    :通用市场新闻、价格波动
  • defi
    :DeFi协议、收益耕作、去中心化交易所(DEXes)
  • nft
    :NFT项目、交易平台、藏品
  • regulatory
    :政府、SEC、法律动态
  • layer1
    :Layer1区块链新闻(Ethereum、Solana等)
  • layer2
    :Layer2扩容方案(Arbitrum、Optimism等)
  • exchange
    :交易所新闻、上线、下线
  • security
    :黑客攻击、漏洞利用、安全隐患

Output

输出示例

Table Format (Default)

表格格式(默认)

==============================================================================
  CRYPTO NEWS AGGREGATOR                            Updated: 2026-01-14 15:30
==============================================================================

  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
==============================================================================
==============================================================================
  CRYPTO NEWS AGGREGATOR                            Updated: 2026-01-14 15:30
==============================================================================

  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
==============================================================================

JSON Format

JSON格式

json
{
  "articles": [
    {
      "rank": 1,
      "title": "Bitcoin Breaks $100K ATH",
      "url": "https://coindesk.com/...",
      "source": "CoinDesk",
      "published": "2026-01-14T13:30:00Z",
      "age": "2h ago",
      "category": "market",
      "relevance_score": 95.0,
      "coins_mentioned": ["BTC"]
    }
  ],
  "meta": {
    "period": "24h",
    "sources_checked": 50,
    "total_articles": 187,
    "shown": 20
  }
}
json
{
  "articles": [
    {
      "rank": 1,
      "title": "Bitcoin Breaks $100K ATH",
      "url": "https://coindesk.com/...",
      "source": "CoinDesk",
      "published": "2026-01-14T13:30:00Z",
      "age": "2h ago",
      "category": "market",
      "relevance_score": 95.0,
      "coins_mentioned": ["BTC"]
    }
  ],
  "meta": {
    "period": "24h",
    "sources_checked": 50,
    "total_articles": 187,
    "shown": 20
  }
}

Error Handling

错误处理

See
{baseDir}/references/errors.md
for comprehensive error handling.
ErrorCauseSolution
Network timeoutRSS feed unreachableUses cached data; skips unavailable sources
Parse errorMalformed RSSSkips entry; continues with valid articles
No resultsFilters too strictSuggest relaxing filters
Invalid coinUnknown symbolList similar valid symbols
请查看
{baseDir}/references/errors.md
获取完整的错误处理说明。
错误原因解决方案
网络超时RSS源无法访问使用缓存数据;跳过不可用的来源
解析错误RSS格式错误跳过该条目;继续处理有效文章
无结果筛选条件过严建议放宽筛选条件
无效币种未知币种符号列出类似的有效符号

Examples

使用示例

See
{baseDir}/references/examples.md
for detailed examples.
请查看
{baseDir}/references/examples.md
获取详细示例。

Quick Examples

快速示例

bash
undefined
bash
undefined

Get latest crypto news (default)

获取最新加密货币新闻(默认设置)

python {baseDir}/scripts/news_aggregator.py
python {baseDir}/scripts/news_aggregator.py

Bitcoin news from past 4 hours

过去4小时的Bitcoin新闻

python {baseDir}/scripts/news_aggregator.py --coin BTC --period 4h
python {baseDir}/scripts/news_aggregator.py --coin BTC --period 4h

DeFi category news

DeFi分类新闻

python {baseDir}/scripts/news_aggregator.py --category defi
python {baseDir}/scripts/news_aggregator.py --category defi

Export to JSON file

导出到JSON文件

python {baseDir}/scripts/news_aggregator.py --format json --output crypto_news.json
python {baseDir}/scripts/news_aggregator.py --format json --output crypto_news.json

High-relevance news only

仅显示高相关性新闻

python {baseDir}/scripts/news_aggregator.py --min-score 70 --top 10
python {baseDir}/scripts/news_aggregator.py --min-score 70 --top 10

Multiple coins

多币种筛选

python {baseDir}/scripts/news_aggregator.py --coins BTC,ETH,SOL
undefined
python {baseDir}/scripts/news_aggregator.py --coins BTC,ETH,SOL
undefined

Resources

资源