Fix NYE (North Yorkshire) scraper#364
Open
symroe wants to merge 1 commit into
Open
Conversation
North Yorkshire's edemocracy server fails from Lambda with a TCP connection timeout during the TLS handshake — wreq's Firefox133 fingerprint is being dropped/reset before the server responds. Locally with curl (system SSL) the endpoint returns 200 OK with valid XML. Playwright (Chromium) uses a Chrome TLS fingerprint that passes the WAF, bypassing the block.
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
North Yorkshire's edemocracy server (
edemocracy.northyorks.gov.uk) fails from Lambda with aConnectionResetError(errno 110, ETIMEDOUT) during the TLS handshake — the server accepts the TCP connection but drops it during the SSL exchange, consistent with WAF-level TLS fingerprint filtering on wreq's Firefox133 client hello. From a clean IP with system SSL (curl), the endpoint returns HTTP 200 with valid ModGov XML.What was fixed
http_lib = "playwright"— Playwright uses Chromium's standard Chrome TLS fingerprint, bypassing the server-side WAF that blocks wreq's fingerprint. Chromium also uses the system cert store (trusting the server's valid cert), so noverify_requestsflag is needed.Scrape results
Cannot run locally (TLS inspection proxy in the build environment). The endpoint returns HTTP 200 with valid councillor XML from a clean IP.
Generated by Claude Code