diff --git a/supabase/functions/events-crawler/adapters/surrey.ts b/supabase/functions/events-crawler/adapters/surrey.ts new file mode 100644 index 0000000..4af6f5b --- /dev/null +++ b/supabase/functions/events-crawler/adapters/surrey.ts @@ -0,0 +1,222 @@ +// Adapter: Surrey Libraries (Drupal, server-rendered HTML). +// +// The only HTML-scraping adapter. Surrey publishes no RSS, no ICS and no JSON, and its +// BiblioCommons tenant has the Events feature disabled — but the listing at +// /events?page=N is fully server-rendered, so no headless browser is needed. +// +// It earns the scraping cost: this is the most settlement-relevant of the Phase-2 library +// sources, carrying "Settlement Services for Newcomers", "WorkBC Résumé Clinic" and +// "Practice Speaking English" alongside the usual storytimes. +// +// Datetimes come from the `