Skip to content

Fix TOF (Torfaen) scraper - #500

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

Fix TOF (Torfaen) scraper#500
symroe wants to merge 1 commit into
masterfrom
fix/TOF-scraper

Conversation

@symroe

@symroe symroe commented Aug 8, 2026

Copy link
Copy Markdown
Member

What broke

The council migrated from their self-hosted ModernGov instance at moderngov.torfaen.gov.uk to the ModernGov SaaS platform at torfaen.moderngov.co.uk. The old domain (HTTP) redirects to the new domain's homepage rather than the ASMX web service, so the scraper received an HTML page instead of councillor XML and reported 0 councillors found. The scraper has been failing for at least 2 consecutive days.

What was fixed

  • Updated base_url in metadata.json from http://moderngov.torfaen.gov.uk to https://torfaen.moderngov.co.uk

Scrape results

Verified against the live ASMX endpoint before opening this PR:

Metric Count
Councillors found 40
With email address 40
With photo 40

Generated by Claude Code

The council migrated from the old self-hosted moderngov.torfaen.gov.uk
to the ModernGov SaaS platform at torfaen.moderngov.co.uk. The HTTPS
ASMX endpoint at the old domain redirects to the new domain's homepage,
causing the scraper to return 0 councillors. The new domain's API is
fully functional and returns 40 councillors with emails and photos.
@symroe

symroe commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

Re-scrape after 62d11da

Initial scrape verification against https://torfaen.moderngov.co.uk/mgWebService.asmx/GetCouncillorsByWard before PR was opened.

Metric Count
Councillors found 40
With email address 40
With photo 40

All 40 councillors have emails (@torfaen.gov.uk) and photos served from the new torfaen.moderngov.co.uk domain.


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