Fix EHE (East Hertfordshire) scraper#422
Open
symroe wants to merge 1 commit into
Open
Conversation
The scraper was failing with a 30-second timeout on the HTTP URL http://democracy.eastherts.gov.uk. The wreq library does not follow cross-protocol (HTTP→HTTPS) redirects, so the scraper hung waiting for a response that never came. The HTTPS endpoint is live and accessible. Updating base_url to HTTPS resolves the timeout.
Member
Author
Re-scrape after ce09b53Changed HTTPS endpoint confirmed reachable from this environment (
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.eastherts.gov.ukuses HTTPS-only, butmetadata.jsonstill pointedbase_urlat thehttp://scheme. wreq does not follow cross-protocol (HTTP→HTTPS) redirects, so the scraper hung waiting for a response that never came and timed out after 30 seconds. The HTTPS endpoint is live and reachable (confirmed:https://democracy.eastherts.gov.uk/mgWebService.asmx/GetCouncillorsByWardreturns a 302 from IIS — standard ModGov behaviour for HEAD requests; GET returns valid councillor XML).Note: this same fix was attempted in PR #368 (June 2026) which was closed without merging. The scraper is now timing out again with the identical
http://timeout error, confirming the root cause remains unfixed in master.What was fixed
metadata.json: changedbase_urlfromhttp://democracy.eastherts.gov.uktohttps://democracy.eastherts.gov.ukScrape results
Generated by Claude Code