Site Content Catalog
Crawl a website's sitemap and blog to build a complete content inventory — every page cataloged with URL, title, date, content type, and topic cluster. Groups content by category, identifies publishing patterns, and optionally deep-analyzes top pages.
Quick Start
# Basic content inventory
python3 skills/site-content-catalog/scripts/catalog_content.py \
--domain "example.com"
# With deep analysis of top 20 pages
python3 skills/site-content-catalog/scripts/catalog_content.py \
--domain "example.com" --deep-analyze 20
# Output to specific file
python3 skills/site-content-catalog/scripts/catalog_content.py \
--domain "example.com" --output clients/acme/research/content-inventory.json
Inputs
| Parameter |
Required |
Default |
Description |
| domain |
Yes |
— |
Domain to catalog (e.g., "example.com") |
| deep-analyze |
No |
0 |
Number of top pages to deep-read for content analysis |
| output |
No |
stdout |
Path to save JSON output |
| include-non-blog |
No |
true |
Also catalog landing pages, docs, etc. (not just blog) |
Cost
- Sitemap/RSS crawling: Free (direct HTTP requests)
- Apify sitemap extractor (fallback): ~$0.50 per site
- Deep analysis: Free (WebFetch on individual pages)
Process
Phase 1: Discover All Pages
The script attempts multiple methods to find all pages on a site, in order:
A) Sitemap.xml
- Fetch
https://[domain]/sitemap.xml
- If it's a sitemap index, recursively fetch all child sitemaps
- Common alternate locations:
/sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml
- Check
robots.txt for Sitemap: directives
B) RSS/Atom Feeds
- Check
/feed, /rss, /atom.xml, /blog/feed, etc.
- Extract posts with titles, dates, and URLs
- RSS typically only surfaces recent content (last 10-50 posts)
C) Blog Index Crawl
- Fetch
/blog, /resources, /insights, /news, /articles
- Extract links from the page
- Follow pagination if present (
/blog/page/2, ?page=2, etc.)
D) Site: Search (fallback)
- WebSearch:
site:[domain] to estimate total indexed pages
- WebSearch:
site:[domain]/blog to find blog content
- WebSearch:
site:[domain] intitle: to discover page title patterns
E) Apify Sitemap Extractor (fallback for JS-heavy sites)
- Actor:
onescales/sitemap-url-extractor
- Use when sitemap.xml is missing and the site is JS-rendered
Phase 2: Classify Each Page
For each discovered URL, classify by:
Content Type
Classify based on URL patterns and page titles:
| Type |
URL Patterns |
Examples |
blog-post |
/blog/, /posts/, /articles/ |
How-to guides, opinion pieces |
case-study |
/case-study/, /customers/, /success-stories/ |
Customer stories |
comparison |
/vs/, /compare/, /alternative/ |
X vs Y pages |
landing-page |
/solutions/, /use-cases/, /for-/ |
Product marketing pages |
docs |
/docs/, /help/, /documentation/, /api/ |
Technical documentation |
changelog |
/changelog/, /releases/, /whats-new/ |
Product updates |
pricing |
/pricing/ |
Pricing page |
about |
/about/, /team/, /careers/ |
Company pages |
legal |
/privacy/, /terms/, /security/ |
Legal/compliance |
resource |
/resources/, /guides/, /ebooks/, /webinars/ |
Gated/downloadable content |
glossary |
/glossary/, /dictionary/, /terms/ |
SEO glossary pages |
integration |
/integrations/, /apps/, /marketplace/ |
Integration pages |
other |
— |
Anything else |
Topic Cluster
Group by extracting topic signals from URL slugs and titles:
- Extract keywords from URL path segments
- Group similar keywords into clusters (e.g., "aws-cost", "cloud-spending", "finops" → "Cloud Cost Management")
- Use simple keyword co-occurrence for clustering
Phase 3: Analyze Publishing Patterns
From the dated content (primarily blog posts):
- Total content pieces by type
- Publishing frequency: Posts per month over last 12 months
- Trend: Increasing, decreasing, or stable output
- Recency: Date of most recent publish
- Author diversity: Unique authors (if extractable from RSS)
Phase 4: Deep Analysis (Optional)
If --deep-analyze N is specified, fetch the top N pages (prioritizing blog posts) and extract:
- Word count (approximate)
- Target keyword (inferred from title + H1 + URL)
- Funnel stage: TOFU (awareness), MOFU (consideration), BOFU (decision)
- Content depth: Shallow (<500 words), Medium (500-1500), Deep (1500+)
- Has images/video: Boolean
- Has CTA: Boolean (detected by common CTA patterns)
- Internal links count
Phase 5: Output
JSON Output (default)
{
"domain": "example.com",
"crawl_date": "2026-02-25",
"total_pages": 347,
"discovery_methods": ["sitemap.xml", "rss"],
"pages": [
{
"url": "https://example.com/blog/reduce-aws-costs",
"title": "How to Reduce Your AWS Bill by 40%",
"date": "2025-11-15",
"type": "blog-post",
"topic_cluster": "Cloud Cost Optimization",
"deep_analysis": {
"word_count": 2100,
"target_keyword": "reduce aws costs",
"funnel_stage": "TOFU",
"content_depth": "deep",
"has_images": true,
"has_cta": true
}
}
],
"summary": {
"by_type": {"blog-post": 89, "landing-page": 23, "case-study": 12, ...},
"by_topic": {"Cloud Cost Optimization": 34, "FinOps": 18, ...},
"publishing_cadence": {
"posts_per_month_avg": 4.2,
"trend": "increasing",
"most_recent": "2026-02-20"
}
}
}
Markdown Summary (also generated)
# Content Inventory: example.com
**Crawled:** 2026-02-25 | **Total pages:** 347
## Content by Type
| Type | Count | % |
|------|-------|---|
| Blog Posts | 89 | 25.6% |
| Landing Pages | 23 | 6.6% |
| ...
## Content by Topic Cluster
| Topic | Posts | Most Recent |
|-------|-------|-------------|
| Cloud Cost Optimization | 34 | 2026-02-20 |
| ...
## Publishing Cadence
- Average: 4.2 posts/month
- Trend: Increasing (3.1 → 5.4 over last 6 months)
- Most recent: 2026-02-20
## Full Catalog
| # | Date | Type | Topic | Title | URL |
|---|------|------|-------|-------|-----|
| 1 | 2026-02-20 | blog-post | Cloud Cost | How to Reduce... | https://... |
Tips
- Sitemap.xml is the best source. Most well-maintained sites have one. If missing, it's itself an SEO signal (negative).
- RSS only shows recent content. If you need the full catalog, sitemap is essential. RSS is supplementary.
- Deep analysis is optional but valuable. Use it when feeding into brand-voice-extractor or when you need funnel stage mapping.
- JS-rendered sites may need the Apify fallback. Signs: sitemap.xml returns HTML, or blog page returns mostly JavaScript.
- Combine with seo-domain-analyzer to overlay traffic data on the content inventory — see which content actually performs.
Dependencies
- Python 3.8+
requests library (pip install requests)
APIFY_API_TOKEN env var (only for Apify fallback mode)
1---2name: site-content-catalog3description: Crawl a website's sitemap and blog index to build a complete content inventory. Lists every page with URL, title, publish date, content type, and topic cluster. Groups content by category and topic. Optionally deep-reads top N pages for quality analysis and funnel stage tagging. Use before SEO audits, content gap analysis, or brand voice extraction.4---56# Site Content Catalog78Crawl a website's sitemap and blog to build a complete content inventory — every page cataloged with URL, title, date, content type, and topic cluster. Groups content by category, identifies publishing patterns, and optionally deep-analyzes top pages.910## Quick Start1112```bash13# Basic content inventory14python3 skills/site-content-catalog/scripts/catalog_content.py \15 --domain "example.com"1617# With deep analysis of top 20 pages18python3 skills/site-content-catalog/scripts/catalog_content.py \19 --domain "example.com" --deep-analyze 202021# Output to specific file22python3 skills/site-content-catalog/scripts/catalog_content.py \23 --domain "example.com" --output clients/acme/research/content-inventory.json24```2526## Inputs2728| Parameter | Required | Default | Description |29|-----------|----------|---------|-------------|30| domain | Yes | — | Domain to catalog (e.g., "example.com") |31| deep-analyze | No | 0 | Number of top pages to deep-read for content analysis |32| output | No | stdout | Path to save JSON output |33| include-non-blog | No | true | Also catalog landing pages, docs, etc. (not just blog) |3435## Cost3637- **Sitemap/RSS crawling:** Free (direct HTTP requests)38- **Apify sitemap extractor (fallback):** ~$0.50 per site39- **Deep analysis:** Free (WebFetch on individual pages)4041## Process4243### Phase 1: Discover All Pages4445The script attempts multiple methods to find all pages on a site, in order:4647#### A) Sitemap.xml481. Fetch `https://[domain]/sitemap.xml`492. If it's a sitemap index, recursively fetch all child sitemaps503. Common alternate locations: `/sitemap_index.xml`, `/sitemap-index.xml`, `/wp-sitemap.xml`514. Check `robots.txt` for `Sitemap:` directives5253#### B) RSS/Atom Feeds541. Check `/feed`, `/rss`, `/atom.xml`, `/blog/feed`, etc.552. Extract posts with titles, dates, and URLs563. RSS typically only surfaces recent content (last 10-50 posts)5758#### C) Blog Index Crawl591. Fetch `/blog`, `/resources`, `/insights`, `/news`, `/articles`602. Extract links from the page613. Follow pagination if present (`/blog/page/2`, `?page=2`, etc.)6263#### D) Site: Search (fallback)641. WebSearch: `site:[domain]` to estimate total indexed pages652. WebSearch: `site:[domain]/blog` to find blog content663. WebSearch: `site:[domain] intitle:` to discover page title patterns6768#### E) Apify Sitemap Extractor (fallback for JS-heavy sites)69- Actor: `onescales/sitemap-url-extractor`70- Use when sitemap.xml is missing and the site is JS-rendered7172### Phase 2: Classify Each Page7374For each discovered URL, classify by:7576#### Content Type77Classify based on URL patterns and page titles:7879| Type | URL Patterns | Examples |80|------|-------------|----------|81| `blog-post` | `/blog/`, `/posts/`, `/articles/` | How-to guides, opinion pieces |82| `case-study` | `/case-study/`, `/customers/`, `/success-stories/` | Customer stories |83| `comparison` | `/vs/`, `/compare/`, `/alternative/` | X vs Y pages |84| `landing-page` | `/solutions/`, `/use-cases/`, `/for-/` | Product marketing pages |85| `docs` | `/docs/`, `/help/`, `/documentation/`, `/api/` | Technical documentation |86| `changelog` | `/changelog/`, `/releases/`, `/whats-new/` | Product updates |87| `pricing` | `/pricing/` | Pricing page |88| `about` | `/about/`, `/team/`, `/careers/` | Company pages |89| `legal` | `/privacy/`, `/terms/`, `/security/` | Legal/compliance |90| `resource` | `/resources/`, `/guides/`, `/ebooks/`, `/webinars/` | Gated/downloadable content |91| `glossary` | `/glossary/`, `/dictionary/`, `/terms/` | SEO glossary pages |92| `integration` | `/integrations/`, `/apps/`, `/marketplace/` | Integration pages |93| `other` | — | Anything else |9495#### Topic Cluster96Group by extracting topic signals from URL slugs and titles:97- Extract keywords from URL path segments98- Group similar keywords into clusters (e.g., "aws-cost", "cloud-spending", "finops" → "Cloud Cost Management")99- Use simple keyword co-occurrence for clustering100101### Phase 3: Analyze Publishing Patterns102103From the dated content (primarily blog posts):104- **Total content pieces** by type105- **Publishing frequency:** Posts per month over last 12 months106- **Trend:** Increasing, decreasing, or stable output107- **Recency:** Date of most recent publish108- **Author diversity:** Unique authors (if extractable from RSS)109110### Phase 4: Deep Analysis (Optional)111112If `--deep-analyze N` is specified, fetch the top N pages (prioritizing blog posts) and extract:113- **Word count** (approximate)114- **Target keyword** (inferred from title + H1 + URL)115- **Funnel stage:** TOFU (awareness), MOFU (consideration), BOFU (decision)116- **Content depth:** Shallow (<500 words), Medium (500-1500), Deep (1500+)117- **Has images/video:** Boolean118- **Has CTA:** Boolean (detected by common CTA patterns)119- **Internal links count**120121### Phase 5: Output122123#### JSON Output (default)124```json125{126 "domain": "example.com",127 "crawl_date": "2026-02-25",128 "total_pages": 347,129 "discovery_methods": ["sitemap.xml", "rss"],130 "pages": [131 {132 "url": "https://example.com/blog/reduce-aws-costs",133 "title": "How to Reduce Your AWS Bill by 40%",134 "date": "2025-11-15",135 "type": "blog-post",136 "topic_cluster": "Cloud Cost Optimization",137 "deep_analysis": {138 "word_count": 2100,139 "target_keyword": "reduce aws costs",140 "funnel_stage": "TOFU",141 "content_depth": "deep",142 "has_images": true,143 "has_cta": true144 }145 }146 ],147 "summary": {148 "by_type": {"blog-post": 89, "landing-page": 23, "case-study": 12, ...},149 "by_topic": {"Cloud Cost Optimization": 34, "FinOps": 18, ...},150 "publishing_cadence": {151 "posts_per_month_avg": 4.2,152 "trend": "increasing",153 "most_recent": "2026-02-20"154 }155 }156}157```158159#### Markdown Summary (also generated)160```markdown161# Content Inventory: example.com162**Crawled:** 2026-02-25 | **Total pages:** 347163164## Content by Type165| Type | Count | % |166|------|-------|---|167| Blog Posts | 89 | 25.6% |168| Landing Pages | 23 | 6.6% |169| ...170171## Content by Topic Cluster172| Topic | Posts | Most Recent |173|-------|-------|-------------|174| Cloud Cost Optimization | 34 | 2026-02-20 |175| ...176177## Publishing Cadence178- Average: 4.2 posts/month179- Trend: Increasing (3.1 → 5.4 over last 6 months)180- Most recent: 2026-02-20181182## Full Catalog183| # | Date | Type | Topic | Title | URL |184|---|------|------|-------|-------|-----|185| 1 | 2026-02-20 | blog-post | Cloud Cost | How to Reduce... | https://... |186```187188## Tips189190- **Sitemap.xml is the best source.** Most well-maintained sites have one. If missing, it's itself an SEO signal (negative).191- **RSS only shows recent content.** If you need the full catalog, sitemap is essential. RSS is supplementary.192- **Deep analysis is optional but valuable.** Use it when feeding into brand-voice-extractor or when you need funnel stage mapping.193- **JS-rendered sites** may need the Apify fallback. Signs: sitemap.xml returns HTML, or blog page returns mostly JavaScript.194- **Combine with seo-domain-analyzer** to overlay traffic data on the content inventory — see which content actually performs.195196## Dependencies197198- Python 3.8+199- `requests` library (`pip install requests`)200- `APIFY_API_TOKEN` env var (only for Apify fallback mode)