Install
openclaw skills install cm-sitemap-generatorGenerate XML sitemaps by crawling a website or scanning local files. Auto-discovers pages via link extraction. Supports local HTML/MD file scanning with last...
openclaw skills install cm-sitemap-generatorGenerate XML sitemaps by crawling a live website or scanning local HTML files.
python3 scripts/sitemap_gen.py https://example.com
python3 scripts/sitemap_gen.py --local ./public --base-url https://example.com
# Save sitemap.xml
python3 scripts/sitemap_gen.py https://example.com --output sitemap.xml
# Save sitemap.xml + robots.txt
python3 scripts/sitemap_gen.py https://example.com --output sitemap.xml --robots
# XML (default — valid sitemap.xml)
python3 scripts/sitemap_gen.py https://example.com
# Text (human-readable summary + XML)
python3 scripts/sitemap_gen.py https://example.com --format text
# JSON (pages list + XML string)
python3 scripts/sitemap_gen.py https://example.com --format json
| Flag | Default | Description |
|---|---|---|
--max-pages | 500 | Maximum pages to crawl |
--timeout | 10 | Request timeout in seconds |
--output / -o | stdout | Save sitemap.xml to file |
--robots | off | Also generate robots.txt |
--local | off | Scan local directory instead of crawling |
--base-url | — | Base URL for local mode (required) |
--verbose / -v | off | Show crawl progress |