微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📰

智能新闻聚合与 GitHub 发现工具

.Publish Temp · v0.1.7
效率 安全 B 级 作者 miniade 公开目录收录
1.1k 下载 0 安装 3.5k 收藏 1 浏览

简介

Python CLI 工具,聚合 RSS/Atom/HTML 新闻源,支持去重聚类、智能排序、GitHub 项目发现及多格式导出,适合需要自动化信息获取的开发者与研究者。

原始描述

Install, configure, validate, and run the news-fetcher Python CLI for aggregating RSS/Atom and HTML news sources with deduplication, clustering, ranking, sou...

通过你的 Agent 添加

安装目录:news-fetcher/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/publish-temp/
Codex CLI~/.codex/skills/publish-temp/
DeepSeek Harness~/.agents/skills/publish-temp/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

news-fetcher 是一款专为技术用户设计的命令行新闻聚合工具,支持从 RSS/Atom 订阅源和 HTML 页面抓取内容,内置智能去重、主题聚类、多维度评分排序及来源多样性控制。用户通过 YAML 配置文件定义源列表、权重阈值和评分策略,可灵活控制输出质量与数量。

安装与运行:需独立安装 Python 包(pip install git+https://github.com/miniade/news-fetcher.git@v0.1.7),通过虚拟环境隔离依赖。全局参数(如 --config、--limit)必须置于 run 子命令之前。

关键功能:

  • 多源聚合:支持 RSS、Atom、HTML 抓取,可自定义 CSS 选择器解析非标准页面
  • 智能处理:基于相似度阈值(默认 0.8)去重聚类,结合内容质量、来源权威性、时效性三维度加权评分
  • GitHub 发现:特有 github_project_discovery 模式,自动抓取 Trending 仓库并富元数据,输出结构化项目推荐
  • 灵活输出:支持 JSON(默认)、Markdown、CSV、RSS 四种格式,可管道化集成

显著优点

  1. 技术友好设计:纯 CLI 交互,配置驱动,适合开发者嵌入自动化工作流
  2. 去重与聚类:避免信息过载,同类新闻自动归并,提升阅读效率
  3. 来源可控:支持权重配置与单源上限限制,平衡信息多样性
  4. 扩展场景:GitHub 项目发现功能填补技术资讯工具空白

潜在局限

  • 安装门槛:需手动管理 Python 虚拟环境与依赖,对非技术用户不友好
  • 版本锁定:当前技能锁定 v0.1.7,后续版本可能引入破坏性变更
  • HTML 解析脆弱性:依赖 CSS 选择器,目标站点结构变化即失效
  • 无内置调度:需结合 cron 或外部工具实现定时任务
  • 网络依赖:无代理配置说明,受限网络环境可能异常

适合人群

  • 需要定制化信息聚合的技术研究者、开发者、投资者
  • 关注 GitHub 生态变化的社区运营者、开源爱好者
  • 希望构建私有新闻 Pipeline 的数据工程师

常规风险

  • 供应链安全:直接从 GitHub 安装而非 PyPI,需信任 miniade/news-fetcher 仓库
  • 配置泄露:YAML 中可能硬编码敏感信息(如私有 RSS 订阅 Token)
  • ** rate limit**:高频抓取公共源可能触发 IP 封禁
  • 内容合规:自动抓取需遵守目标站点 robots.txt 与版权协议

技能正文


name: news-fetcher description: Install, configure, validate, and run the news-fetcher Python CLI for aggregating RSS/Atom and HTML news sources with deduplication, clustering, ranking, source diversity, summaries, and GitHub project discovery. Use when an agent needs to fetch news, create or validate a config, troubleshoot installation, discover GitHub projects worth attention today, or produce JSON/Markdown/CSV/RSS output from multiple sources.

News Fetcher

Use this skill to get a working news-fetcher installation and run it correctly.

Important

  • Installing the ClawHub skill does not install the Python package.
  • Install the Python package separately with pip.
  • Put global options before run.

Correct:

news-fetcher --config config.yaml --limit 10 run

Wrong:

news-fetcher run --config config.yaml --limit 10

Minimal working install

python3 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install "git+https://github.com/miniade/news-fetcher.git@v0.1.7"
news-fetcher version

Expect news-fetcher version 0.1.7.

Minimal working config

Generate a starter config:

news-fetcher config example > config.yaml

Or create one manually:

sources:
  - name: BBC News
    url: http://feeds.bbci.co.uk/news/rss.xml
    weight: 1.0
    type: rss

  - name: Reuters Tech
    url: https://www.reutersagency.com/feed/?best-topics=tech
    weight: 1.2
    type: rss

  - name: Example HTML Source
    url: https://example.com/news
    weight: 0.9
    type: html
    selector: main article

thresholds:
  similarity: 0.8
  min_score: 0.3
  cluster_size: 2
  max_per_source: 3

weights:
  content: 0.6
  source: 0.2
  publish_time: 0.2

Validate it:

news-fetcher config validate config.yaml

Common commands

Run with a config:

news-fetcher --config config.yaml --limit 20 run

Write Markdown output:

news-fetcher --config config.yaml --format markdown --output news.md run

Filter by time:

news-fetcher --config config.yaml --since 2026-03-01T00:00:00 run

Raise the score threshold:

news-fetcher --config config.yaml --min-score 0.5 run

Override sources directly from the CLI:

news-fetcher --sources "http://feeds.bbci.co.uk/news/rss.xml,https://news.ycombinator.com/rss" --limit 10 run

GitHub project discovery

Minimal config example:

sources:
  - name: GitHub Trending
    url: https://github.com/trending
    type: html
    source_type: github_project_discovery
    candidate_strategy: project_discovery

thresholds:
  similarity: 0.8
  min_score: 0.0
  cluster_size: 2
  max_per_source: 3

This path discovers projects from GitHub Trending, enriches repository metadata, ranks projects with GitHub-specific signals, and emits selected repositories as normal news items.

HTML sources

For type: html sources, set selector when the site does not use clean <article> blocks.

Example:

sources:
  - name: Example HTML Source
    url: https://example.com/news
    type: html
    selector: .story-card

Troubleshooting

If news-fetcher is missing after installing the skill, install the Python package:

pip install "git+https://github.com/miniade/news-fetcher.git@v0.1.7"

If config validation fails, run:

news-fetcher config validate config.yaml

If results are too sparse, lower thresholds.min_score or raise thresholds.max_per_source.

References

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

clinews-aggregationrssgithubpythonautomationdata-pipelineopen-source

同类 Skill