Fix MDW (Medway) scraper#428
Open
symroe wants to merge 1 commit into
Open
Conversation
democracy.medway.gov.uk times out from Lambda with wreq's Firefox133 TLS fingerprint. The existing verify_requests=False addresses a certificate issue but does not bypass the WAF's TLS fingerprint check, which drops the connection before any HTTP response is returned. Adding http_lib="playwright" switches to headless Chromium's Chrome TLS fingerprint, which passes the WAF and allows the ModGov XML endpoint to be reached. Same fix pattern as HNS (#405), LAC (#420), DAC (#416), and other recently fixed ModGov instances.
Member
Author
Re-scrape after 9f85123Initial PR — added
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
democracy.medway.gov.uktimes out from Lambda with wreq's Firefox133 TLS fingerprint — TCP connection timed out after 110 seconds. The existingverify_requests = Falseaddresses a certificate trust issue on this host but does not bypass the WAF's TLS fingerprint check: the WAF drops the connection during the TLS handshake when it detects wreq's Firefox client-hello, causing a connection timeout. The ModGov XML endpoint is accessible from non-Lambda clients. Same WAF fingerprint block pattern as HNS (#405), LAC (#420), DAC (#416), and other recently fixed ModGov instances.What was fixed
councillors.py: addedhttp_lib = "playwright"— headless Chromium's Chrome TLS fingerprint passes the WAF check, allowing the ModGov XML endpoint (GetCouncillorsByWard) to be reachedverify_requests = Falseretained — the certificate trust issue on this host is independent of the WAF fingerprint blockScrape results
Generated by Claude Code