Fix TOF (Torfaen) scraper - #500
Open
symroe wants to merge 1 commit into
Open
Conversation
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.
Member
Author
Re-scrape after 62d11daInitial scrape verification against
All 40 councillors have emails ( Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
The council migrated from their self-hosted ModernGov instance at
moderngov.torfaen.gov.ukto the ModernGov SaaS platform attorfaen.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
base_urlinmetadata.jsonfromhttp://moderngov.torfaen.gov.uktohttps://torfaen.moderngov.co.ukScrape results
Verified against the live ASMX endpoint before opening this PR:
Generated by Claude Code