Fix AGY (Isle of Anglesey) scraper - #503
Open
symroe wants to merge 1 commit into
Open
Conversation
…ass Lambda IP block democracy.anglesey.gov.uk is reachable from the public internet but times out from Lambda even with http_lib="requests" (the previous fix applied in May 2026). The site responding externally but not from Lambda is the classic Lambda IP-range block pattern. Playwright runs headless Chromium, which is less fingerprinted and more likely to bypass network- level filtering than Python's requests library.
Member
Author
Re-scrape after 1117d14Switched Scrape results are not available from this automated run — the fix cannot be verified without executing the scraper in a Lambda-equivalent environment. This follows the established fix pattern for ModGov Lambda IP-block failures (same as KIR #501, FLN #421, GWN #440). If playwright also times out, the likely cause is a hard IP-level block that no HTTP library can bypass, and the scraper should be escalated to an issue. 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.anglesey.gov.ukresponds normally from the public internet but times out from Lambda even withhttp_lib = "requests"(which was applied as a previous fix in May 2026). The pattern — external access works, Lambda times out — indicates Lambda's IP range is blocked or throttled at the network level by the site.What was fixed
http_libfrom"requests"to"playwright"— headless Chromium is less likely to be blocked by the network-level filter than Python'srequestslibrary, and it will execute any browser-level JS challenge if one is presentScrape results
Scrape results are not available from this automated run (cannot execute scrapers from the GitHub MCP environment). The fix follows the established pattern for Lambda IP-block failures on ModGov instances (same approach as KIR, FLN, GWN, and other recently fixed councils).
Generated by Claude Code