Skip to content

Fix GWN (Gwynedd) scraper#440

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

Fix GWN (Gwynedd) scraper#440
symroe wants to merge 1 commit into
masterfrom
fix/GWN-scraper

Conversation

@symroe

@symroe symroe commented Jul 20, 2026

Copy link
Copy Markdown
Member

What broke

Gwynedd Council migrated their ModGov democracy portal from democracy.cyngor.gwynedd.gov.uk to democracy.gwynedd.llyw.cymru. The old domain returns HTTP 307 (Temporary Redirect) to the new domain, but wreq times out waiting for a full HTTP response body after the redirect (30-second timeout). The new domain serves the GetCouncillorsByWard XML endpoint correctly with no WAF interference.

What was fixed

  • metadata.json: changed base_url from https://democracy.cyngor.gwynedd.gov.uk to https://democracy.gwynedd.llyw.cymru

Scrape results

Verified from the live endpoint at https://democracy.gwynedd.llyw.cymru/mgWebService.asmx/GetCouncillorsByWard:

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

Opened by LGSF maintenance bot (2026-07-20)


Generated by Claude Code

…yw.cymru

Gwynedd Council migrated their ModGov democracy portal from
democracy.cyngor.gwynedd.gov.uk to democracy.gwynedd.llyw.cymru.
The old domain responds with HTTP 307 redirects to the new domain but wreq
times out waiting for a full response (30-second timeout). The new domain
serves the GetCouncillorsByWard XML endpoint correctly and returns all 69
councillors with emails and photos.
@symroe

symroe commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

Re-scrape after 6f7821d

Initial scrape from new endpoint https://democracy.gwynedd.llyw.cymru/mgWebService.asmx/GetCouncillorsByWard (verified via direct HTTP request):

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

All councillors have <photobigurl> entries in the XML pointing to https://democracy.gwynedd.llyw.cymru/UserData/... (new domain). Endpoint responds with HTTP 302 (standard ModGov ASMX redirect pattern) and returns full XML without WAF interference.


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