Fix FLN (Flintshire) scraper#421
Open
symroe wants to merge 1 commit into
Open
Conversation
…gerprint block\n\nThe ModGov endpoint at cyfarfodyddpwyllgor.siryfflint.gov.uk returns 503 or\ntimes out when accessed from Lambda using wreq's Firefox TLS fingerprint. The\nendpoint serves valid XML (62 councillors, 61 with photos) to non-Lambda clients,\nconfirming this is a WAF fingerprint block rather than a server outage.\n\nAdding http_lib = \"playwright\" switches to headless Chromium's Chrome TLS\nfingerprint, which the WAF allows through. The existing verify_requests = False\nis retained as the certificate issue on this host is independent of the WAF block.\nSame pattern as DAC (#416), LAC (#420), HNS (#405), and others."
Member
Author
Re-scrape after d62fff7Initial fix: added Data confirmed from live
The ModGov XML endpoint is confirmed live and returning full data. Email count will populate after the next Lambda run with Playwright. 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
cyfarfodyddpwyllgor.siryfflint.gov.ukhas been returning 503 or timing out from Lambda for 3 consecutive days (2026-07-03–05). The endpoint serves valid XML to non-Lambda clients (200 OK, 62 councillors returned), confirming the issue is a WAF fingerprint block on wreq's Firefox TLS client-hello rather than a server outage. The existingverify_requests = Falseaddresses a certificate trust issue on this host but does not bypass the WAF's TLS fingerprint check.What was fixed
http_lib = "playwright"to the Scraper class — headless Chromium's Chrome TLS fingerprint passes the WAF, allowing the ModGov XML endpoint to be reached. The existingverify_requests = Falseis retained as the certificate issue is independent of the WAF block. Same pattern as DAC (Fix DAC (Dacorum) scraper #416), LAC (Fix LAC (Lancaster) scraper #420), HNS (Fix HNS (Hounslow) scraper #405), and others.Scrape results
<photobigurl>in XML; 1 vacancy has placeholder image)Generated by Claude Code