闲社服务运行正常AI智能体自动化平台
s

站点地图生成器

技能标识:sitemap-generator

Generate XML sitemaps by crawling a website. Use when a user needs to create a sitemap.xml for SEO, audit site structure, discover all pages on a domain, or generate a sitemap for submission to Google Search Console or other search engines. Handles BFS crawling with configurable depth, page limits, and polite delays.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

站点地图生成器

站点地图生成器

抓取任意网站并生成符合标准、可供搜索引擎提交的XML站点地图。

快速开始

bash
python3 scripts/sitemap_gen.py https://example.com

输出:当前目录下的 sitemap.xml 文件。

命令

bash

基础用法 — 抓取并写入 sitemap.xml


python3 scripts/sitemap_gen.py https://example.com

自定义输出路径

python3 scripts/sitemap_gen.py https://example.com -o /tmp/sitemap.xml

限制抓取范围

python3 scripts/sitemap_gen.py https://example.com --max-pages 500 --max-depth 3

礼貌抓取(带延迟)

python3 scripts/sitemap_gen.py https://example.com --delay 1.0

设置SEO提示

python3 scripts/sitemap_gen.py https://example.com --changefreq daily --priority 0.8

显示详细进度

python3 scripts/sitemap_gen.py https://example.com -v

输出到标准输出

python3 scripts/sitemap_gen.py https://example.com -o -

选项

标志默认值描述
--output, -ositemap.xml输出文件路径(使用 - 表示标准输出)
--max-pages
200 | 最大抓取页面数 | | --max-depth | 5 | 从起始URL开始的最大链接深度 | | --delay | 0.2 | 请求间隔秒数 | | --timeout | 10 | 请求超时秒数 | | --changefreq | weekly | 站点地图更新频率提示 | | --priority | 0.5 | 站点地图优先级提示(0.0–1.0) | | --verbose, -v | 关闭 | 将抓取进度输出到标准错误流 |

依赖

bash
pip install requests beautifulsoup4

说明

  • - 仅抓取同域名页面(不包含外部链接)
  • 跳过二进制文件(图片、CSS、JS、PDF、字体)
  • 遵守延迟设置以避免对服务器造成过大压力
  • 输出符合 sitemaps.org 0.9 协议

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 sitemap-generator-1776127936 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 sitemap-generator-1776127936 技能

通过命令行安装

skillhub install sitemap-generator-1776127936

下载

⬇ 下载 sitemap-generator v1.0.0(免费)

文件大小: 4.06 KB | 发布时间: 2026-4-15 14:22

v1.0.0 最新 2026-4-15 14:22
Initial release of sitemap-generator.

- Crawl any website and generate a standards-compliant XML sitemap.
- Supports configurable crawl depth, maximum pages, delay between requests, and output path.
- Allows setting SEO hints such as changefreq and priority.
- Skips external links and binary file types for efficient sitemap generation.
- Outputs ready for direct submission to search engines; follows sitemaps.org protocol.
返回顶部