news-crawler

新闻自动爬取与总结工具。用于抓取指定网站或RSS源的新闻内容,并生成摘要报告。 使用场景: 1. 用户要求"获取今日新闻"、"爬取某网站内容" 2. 用户需要"总结新闻"、"生成日报" 3. 用户指定具体URL要求抓取内容 4. 需要监控特定新闻源的最新动态

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "news-crawler" with this command: npx skills add Oshin123456/news-crawler

News Crawler - 新闻爬虫

自动爬取新闻网站和RSS源,提取内容并生成摘要。

快速开始

1. 获取RSS新闻列表

查看可用的新闻源:

python3 scripts/rss_fetcher.py

获取指定RSS源的新闻:

python3 scripts/rss_fetcher.py <rss_url> [max_items]

示例:

python3 scripts/rss_fetcher.py https://www.solidot.org/index.rss 5

2. 爬取具体网页内容

python3 scripts/crawl.py <url> [max_length]

示例:

python3 scripts/crawl.py https://example.com/news/article.html 3000

工作流程

生成新闻日报

  1. 选择新闻源 - 从常用源中选择或用户提供RSS地址
  2. 获取新闻列表 - 使用 rss_fetcher.py 获取最新文章
  3. 爬取详细内容 - 对每篇文章使用 crawl.py 获取全文
  4. 生成摘要 - 使用 LLM 总结每篇文章的核心内容
  5. 整理报告 - 按类别或时间排序,生成结构化日报

支持的RSS源

常用中文科技新闻源:

国际源:

输出格式

rss_fetcher.py 输出:

{
  "items": [
    {
      "title": "文章标题",
      "link": "文章链接",
      "description": "简介",
      "published": "发布时间"
    }
  ],
  "count": 10
}

crawl.py 输出:

{
  "url": "原始链接",
  "title": "页面标题",
  "content": "正文内容",
  "length": 5000
}

注意事项

  1. 尊重robots.txt - 爬取前检查目标网站的爬虫协议
  2. 控制频率 - 避免频繁请求同一网站
  3. 内容长度 - 默认截取5000字符,可通过参数调整
  4. 编码问题 - 脚本已处理UTF-8编码,特殊网站可能需要额外处理

扩展开发

如需支持更多功能,可参考:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated