Install
openclaw skills install news-crawler新闻自动爬取与总结工具。用于抓取指定网站或RSS源的新闻内容,并生成摘要报告。 使用场景: 1. 用户要求"获取今日新闻"、"爬取某网站内容" 2. 用户需要"总结新闻"、"生成日报" 3. 用户指定具体URL要求抓取内容 4. 需要监控特定新闻源的最新动态
openclaw skills install news-crawler自动爬取新闻网站和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
python3 scripts/crawl.py <url> [max_length]
示例:
python3 scripts/crawl.py https://example.com/news/article.html 3000
常用中文科技新闻源:
国际源:
rss_fetcher.py 输出:
{
"items": [
{
"title": "文章标题",
"link": "文章链接",
"description": "简介",
"published": "发布时间"
}
],
"count": 10
}
crawl.py 输出:
{
"url": "原始链接",
"title": "页面标题",
"content": "正文内容",
"length": 5000
}
如需支持更多功能,可参考: