Fix ELS (Na h-Eileanan an Iar) scraper#427
Open
symroe wants to merge 1 commit into
Open
Conversation
…int block www.cne-siar.gov.uk returns HTTP 403 to wreq's Firefox133 TLS fingerprint. The existing verify_requests=False addresses a certificate trust issue but does not bypass the WAF's TLS fingerprint check. Adding http_lib="playwright" switches to headless Chromium's Chrome TLS fingerprint, which passes the WAF and allows the councillors page and individual detail pages to load correctly. Same fix pattern as ELN (#410), FIF (#419), and other recently fixed councils.
Member
Author
Re-scrape after e26357dInitial PR — added
Reference: previous successful run (PR #392, June 2026) found 29 councillors, all with email and photo on individual detail pages. 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
www.cne-siar.gov.ukreturns HTTP 403 to wreq's Firefox133 TLS fingerprint. The existingverify_requests = Falseaddresses a certificate trust issue on this host but does not bypass the WAF's TLS fingerprint check. The WAF is blocking Lambda's requests based on the non-browser TLS client-hello, returning 403 Forbidden. The councillors page is accessible to browser clients (confirmed: page serves valid HTML with councillor links). Same WAF fingerprint block pattern as ELN (#410), FIF (#419), and other recently fixed councils.Note: PR #392 attempted this same fix but was closed without merging; this PR re-applies it from the current master.
What was fixed
councillors.py: addedhttp_lib = "playwright"— headless Chromium's Chrome TLS fingerprint passes the WAF check, allowing the councillors list page and individual detail pages to load correctlyverify_requests = Falseretained — the certificate trust issue on this host is independent of the WAF fingerprint blockScrape results
Previous successful run (PR #392, June 2026) found 29 councillors, all with email and photo.
Generated by Claude Code