Skip to content

Fix AGY (Isle of Anglesey) scraper - #503

Open
symroe wants to merge 1 commit into
masterfrom
fix/AGY-scraper
Open

Fix AGY (Isle of Anglesey) scraper#503
symroe wants to merge 1 commit into
masterfrom
fix/AGY-scraper

Conversation

@symroe

@symroe symroe commented Aug 10, 2026

Copy link
Copy Markdown
Member

What broke

democracy.anglesey.gov.uk responds normally from the public internet but times out from Lambda even with http_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

  • Changed http_lib from "requests" to "playwright" — headless Chromium is less likely to be blocked by the network-level filter than Python's requests library, and it will execute any browser-level JS challenge if one is present

Scrape 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

…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.
@symroe

symroe commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Re-scrape after 1117d14

Switched http_lib from "requests" to "playwright" to address Lambda-specific timeout (site responds externally but times out from Lambda even with requests).

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant