Skip to content

Fix BRT (Broxtowe) scraper#414

Open
symroe wants to merge 1 commit into
masterfrom
fix/BRT-scraper
Open

Fix BRT (Broxtowe) scraper#414
symroe wants to merge 1 commit into
masterfrom
fix/BRT-scraper

Conversation

@symroe

@symroe symroe commented Jul 3, 2026

Copy link
Copy Markdown
Member

What broke

democracy.broxtowe.gov.uk has been redirecting HTTP to HTTPS (301 Moved Permanently), but metadata.json still pointed base_url at the old http:// URL. With http_lib = "playwright" already set, Playwright was timing out trying to load the HTTP URL before the redirect could be served (net::ERR_CONNECTION_TIMED_OUT). The HTTPS endpoint is fully operational and returns valid ModGov XML (GetCouncillorsByWard confirmed 200 OK with councillor data).

What was fixed

  • Updated base_url in metadata.json from http://democracy.broxtowe.gov.uk to https://democracy.broxtowe.gov.uk

Scrape results

Metric Count
Councillors found TBC (Lambda run needed — HTTPS endpoint confirmed live and returning XML)
With email address TBC
With photo TBC

Generated by Claude Code

democracy.broxtowe.gov.uk returns HTTP 301 → HTTPS. Playwright follows
the redirect in theory, but the HTTP connection times out before the
redirect is served (net::ERR_CONNECTION_TIMED_OUT). Pointing base_url
directly at the HTTPS endpoint resolves the timeout. The HTTPS endpoint
returns valid ModGov XML (GetCouncillorsByWard confirmed 200 OK).
@symroe

symroe commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

Re-scrape after ef7a0fb

Changed base_url from http:// to https:// in metadata.json. The HTTPS ModGov endpoint was verified live from this environment — GetCouncillorsByWard returned full XML directly.

Metric Count
Councillors found 44 (confirmed from live XML)
With email address 0 in XML (emails likely on individual detail pages, fetched during full scrape)
With photo 44 (photobigurl populated for all)

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant