SPB Git forge

spb/websensor

Public
33commits 1branches 0releases
3.4 MBsize
maindefault branch
10 days agolast push
TypeScript 55.4% Python 43.2% SQL 1.2%
1023 B · 13 lines markdown
Rendered Raw Blame History
1# Connector: Sitemap (`sitemap`)2**Purpose**: page-level discovery — new URLs, removed URLs, `lastmod` bumps — including news sitemaps.3**Sensor type**: SITEMAP. **Retrieval**: conditional GET, 30 MB limit, gzip transparently decompressed4(magic-byte check), sitemap index followed (`maxChildren`, default 6; newest first when `lastmod` is present).5**Normalization**: keyed list by URL, `compareFields: lastmod`; sorted newest first; `include`/`exclude` regexes;6`maxUrls` (default 5000). A > 50 % shrink versus the previous snapshot is treated as a partial response (no7removals reported).8**Events**: `page_created` (new URL), `page_removed` (URL gone, only after confirmations), `documentation_change`9etc. via heuristics on titles/URLs.10**Known quirks**: huge multilingual indexes (BMW: 100+ children) — choose a specific child sitemap; image/video11sitemaps are skipped by discovery. **Tests**: fixtures `tests/fixtures/sitemap.xml`. **Verified**: 2026-09-0812(anthropic.com sitemap 524 URLs, BMW press sitemap).13