SPB Git forge
38commits 1branches 0releases
338.7 MBsize
maindefault branch
3 h agolast push
HTML 53.9% TypeScript 44.5% JavaScript 0.6% SQL 0.5%
2.1 KB · 36 lines markdown
Rendered Raw Blame History
1# Global Switch (`globalswitch`)23- **Domain**: `www.globalswitch.com` · **Kind**: operator · **Priority**: 1 · **Enabled**: yes4- **License / attribution**: Publicly accessible operator pages; factual data only; © Global Switch — attribution “Global Switch”5- **Coverage**: GB, NL, DE, FR, ES, HK, SG, MY, AU67## What it collects89Facility records (`kind: facility`) via parser(s) `globalswitch_facility_v1` in `apps/worker/src/connectors/operators2/emea.ts`.1011Fields published by the pages and captured: one record per building: name, totalPowerMw, address, postalCode, city, countryIso2.1213Every field carries an extraction method in `methods` (e.g. `json-ld:PostalAddress`, `regex:it_mw_v1`, `attr:data-value+MW`, `lookup:city-country`) for provenance. Coordinates are only taken from JSON-LD / embedded JSON / map links published by the operator — never geocoded. Status defaults to `operational` unless the page uses pipeline wording (under construction / coming soon / planned).1415## Discovery1617- Sitemaps: `https://www.globalswitch.com/page-sitemap.xml`, `https://www.globalswitch.com/post-sitemap.xml`18- Include: `/data-centres/[a-z-]+/$`, `/announcement/`19- Exclude: `\?`, `#`20- Classify: `/data-centres/[a-z-]+/$` → facility_pages (facility_page); `/announcement/.` → newsroom (press_release)2122Newsroom URLs (when configured) rely on the GenericConnector news fallback (press_release → `news_event` when data-center relevant).2324## Schedule & fetch2526- Schedule: facility_pages weekly, newsroom daily, sitemap weekly27- Fetch: L1→L2, 15 rpm, concurrency 2, robots.txt respected, max 20 premium credits/run. All pages are served at L1 (plain HTTP); `maxLevel` is capped at 2 so false-positive “blocked” heuristics (HubSpot / cookie-consent strings) never spend Scrapfly credits.2829## Quirks3031City pages /data-centres/<city>/ list each building in .contact_offices (name, MW, street, postal code + city, country) → one record per building.3233## Verification (live, 2026-09-11)3435`try-connector --limit N`: discovered 33 URLs (facility_pages=8, newsroom=25); sampled pages → 9 entities, 9 valid, 0 rejected, 0 premium credits.36