Skip to content

Conversation

@bmines67
Copy link

@bmines67 bmines67 commented Nov 3, 2025

There is an open bug [Bug]: Armagh, Babridge & Craigavon Council no longer working #4776 for this council area. I've edited the code to fix it

Changes Made:

Added Request Headers (Line 52-54):

Added User-Agent to make requests appear like a normal browser

Updated HTML Parsing (Lines 60-106):

Changed from soup.select("div.heading > h2 > i.fa") to soup.find_all("h2")
Added filtering for headings containing "Collections"
Updated parent/sibling navigation to match new structure
Used flexible class matching with lambda functions for better compatibility

Improved Date Extraction (Lines 94-105):

Added regex pattern matching to extract dates from text with icons
Added error handling for invalid date formats

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