aggregating-crypto-news
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAggregating 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:
- Python 3.8+ is installed
- feedparser library is available:
pip install feedparser - requests library is available:
pip install requests - Internet connectivity for RSS feed access
使用本Skill前,请确保:
- 已安装Python 3.8+
- 已安装feedparser库:
pip install feedparser - 已安装requests库:
pip install requests - 具备互联网连接以访问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
undefinedDefault 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
undefinedpython {baseDir}/scripts/news_aggregator.py --coin ETH --category defi --period 24h --top 15
undefinedStep 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
命令行选项
| Option | Description | Default |
|---|---|---|
| Filter by coin symbol (BTC, ETH, etc.) | None |
| Filter by multiple coins (comma-separated) | None |
| Filter by category | None |
| Time window (1h, 4h, 24h, 7d) | 24h |
| Number of results to return | 20 |
| Minimum relevance score | 0 |
| Output format (table, json, csv) | table |
| Output file path | stdout |
| Sort by (relevance, recency) | relevance |
| Enable verbose output | false |
| 选项 | 描述 | 默认值 |
|---|---|---|
| 按币种符号筛选(BTC、ETH等) | None |
| 按多个币种筛选(逗号分隔) | None |
| 按分类筛选 | None |
| 时间窗口(1h、4h、24h、7d) | 24h |
| 返回结果数量 | 20 |
| 最低相关性评分 | 0 |
| 输出格式(table、json、csv) | table |
| 输出文件路径 | stdout |
| 排序依据(relevance、recency) | relevance |
| 启用详细输出 | false |
Categories Available
可用分类
- : General market news, price movements
market - : DeFi protocols, yield farming, DEXes
defi - : NFT projects, marketplaces, collections
nft - : Government, SEC, legal developments
regulatory - : L1 blockchain news (Ethereum, Solana, etc.)
layer1 - : L2 scaling solutions (Arbitrum, Optimism, etc.)
layer2 - : Exchange news, listings, delistings
exchange - : Hacks, exploits, vulnerabilities
security
- :通用市场新闻、价格波动
market - :DeFi协议、收益耕作、去中心化交易所(DEXes)
defi - :NFT项目、交易平台、藏品
nft - :政府、SEC、法律动态
regulatory - :Layer1区块链新闻(Ethereum、Solana等)
layer1 - :Layer2扩容方案(Arbitrum、Optimism等)
layer2 - :交易所新闻、上线、下线
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 for comprehensive error handling.
{baseDir}/references/errors.md| Error | Cause | Solution |
|---|---|---|
| Network timeout | RSS feed unreachable | Uses cached data; skips unavailable sources |
| Parse error | Malformed RSS | Skips entry; continues with valid articles |
| No results | Filters too strict | Suggest relaxing filters |
| Invalid coin | Unknown symbol | List similar valid symbols |
请查看获取完整的错误处理说明。
{baseDir}/references/errors.md| 错误 | 原因 | 解决方案 |
|---|---|---|
| 网络超时 | RSS源无法访问 | 使用缓存数据;跳过不可用的来源 |
| 解析错误 | RSS格式错误 | 跳过该条目;继续处理有效文章 |
| 无结果 | 筛选条件过严 | 建议放宽筛选条件 |
| 无效币种 | 未知币种符号 | 列出类似的有效符号 |
Examples
使用示例
See for detailed examples.
{baseDir}/references/examples.md请查看获取详细示例。
{baseDir}/references/examples.mdQuick Examples
快速示例
bash
undefinedbash
undefinedGet 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
undefinedpython {baseDir}/scripts/news_aggregator.py --coins BTC,ETH,SOL
undefinedResources
资源
- CoinDesk: https://www.coindesk.com/arc/outboundfeeds/rss/
- CoinTelegraph: https://cointelegraph.com/rss
- The Block: https://www.theblock.co/rss.xml
- Decrypt: https://decrypt.co/feed
- feedparser docs: https://feedparser.readthedocs.io/
- See for full source registry
{baseDir}/config/sources.yaml
- CoinDesk:https://www.coindesk.com/arc/outboundfeeds/rss/
- CoinTelegraph:https://cointelegraph.com/rss
- The Block:https://www.theblock.co/rss.xml
- Decrypt:https://decrypt.co/feed
- feedparser文档:https://feedparser.readthedocs.io/
- 完整来源注册表请查看
{baseDir}/config/sources.yaml