← 返回
未分类

rss-sitemap

Discover website URLs, feed entries, and latest publications by checking sitemap.xml, sitemaps.xml, atom.xml, and rss.xml before crawling a specific site. Use when Codex needs to find the most recent posts/articles/publications from a named website or domain, search, crawl, scrape, monitor, or enumerate site content, and should prefer the site's own sitemap, Atom feed, or RSS feed over blind link crawling.
Discover website URLs, feed entries, and latest publications by checking sitemap.xml, sitemaps.xml, atom.xml, and rss.xml before crawling a specific site. Use when Codex needs to find the most recent posts/articles/publications from a named website or domain, search, crawl, scrape, monitor, or enumerate site content, and should prefer the site's own sitemap, Atom feed, or RSS feed over blind link crawling.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#latest

概述

RSS Sitemap

Overview

Use this skill to bootstrap site discovery from the site's own machine-readable indexes before doing general crawling. For any task that targets a specific website, first look for sitemap, Atom, and RSS resources and use them to find the latest publications or guide the crawl.

Workflow

  1. Normalize the target site to an origin such as https://example.com.
  2. Run the bundled preprocessor through the OpenClaw exec tool when Node.js 18+ is available. exec is the shell tool name; do not require a separate bash tool:

```bash

node skills/rss-sitemap/scripts/preprocess-rss-sitemap.js --site https://example.com --output /tmp/rss-sitemap.json

```

  1. Probe these root resources first when running manually:
    • /sitemap.xml
    • /sitemaps.xml
    • /atom.xml
    • /rss.xml
  2. If available, also inspect /robots.txt for Sitemap: directives and include those sitemap URLs.
  3. Fetch only resources that return a successful HTTP response and XML-like content.
  4. Parse XML with a real parser when possible. Avoid ad hoc regex parsing except for quick triage.
  5. Use discovered URLs or entries as the crawl frontier before falling back to regular page crawling.

Bundled Tool

Use scripts/preprocess-rss-sitemap.js for deterministic pre-crawl discovery. It has no npm dependencies and uses Node's built-in fetch, so it requires Node.js 18 or newer for URL fetching.

Common commands:

node skills/rss-sitemap/scripts/preprocess-rss-sitemap.js --site https://example.com
node skills/rss-sitemap/scripts/preprocess-rss-sitemap.js --url https://example.com/sitemap.xml --url https://example.com/feed.xml
node skills/rss-sitemap/scripts/preprocess-rss-sitemap.js --file ./sitemap.xml --file ./feed.xml
node skills/rss-sitemap/scripts/preprocess-rss-sitemap.js --site https://example.com --max-depth 2 --output /tmp/rss-sitemap.json

The script outputs JSON with:

  • resources: probed XML or robots resources, HTTP status, content type, detected kind, and entry count.
  • entries: normalized sitemap URLs, RSS items, or Atom entries with source provenance.

For latest-publication requests, sort entries by the best available date:

  1. RSS pubDate
  2. Atom updated
  3. Atom published
  4. Sitemap lastmod

If entries do not include dates, prefer RSS or Atom feed order before sitemap order because feeds usually list newest content first.

If the script fails because the site blocks requests, needs JavaScript, or requires authentication, use the available web scraping/search/browser tools for fetching, then apply the same parsing and crawl strategy.

Required tools:

  • OpenClaw exec enabled for host script execution.
  • Node.js 18+ for remote URL discovery with the bundled script.
  • Any available HTTP, scraping, search, or browser tool when Node fetch cannot access the target site.

Parsing Rules

For sitemaps:

  • Treat as a list of nested sitemaps; recursively fetch each .
  • Treat as crawlable page URLs; extract and keep useful metadata such as , , and when present.
  • De-duplicate URLs after canonicalizing obvious variants such as fragments.

For RSS feeds:

  • Extract each with title, link, guid, pubDate, and description when present.
  • Prefer link as the crawl URL; fall back to guid only if it is URL-like.

For Atom feeds:

  • Extract each with title, id, updated, published, summary, and link.
  • Prefer ; otherwise use the first URL-like href.

Crawl Strategy

  • Prefer newest or most relevant entries when the user asks for recent content.
  • For "latest publications", "recent posts", "new articles", or equivalent requests, use RSS/Atom first and return dated entries in descending order when dates are available.
  • Prefer sitemap URLs when the user asks for broad site coverage.
  • Keep feed and sitemap provenance with each discovered URL so later summaries can explain where a URL came from.
  • If none of the well-known resources exist, state that discovery fell back to normal crawling or search.
  • Respect robots, rate limits, authentication boundaries, and user instructions before expanding a crawl.

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 12:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 1 📥 251
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 218 📥 71,819
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 279 📥 101,700