Skip to content

Commit

Permalink
Fix Monmouthshire collection new line error
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaen committed Dec 27, 2024
1 parent 7b4b6eb commit 450c608
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def parse_data(self, page: str, **kwargs) -> dict:

# Extract collection date (e.g., "Monday 9th December")
date_tag = panel.find("p")
if date_tag and "Your next collection date is" in date_tag.text:
if date_tag and "Your next collection date is" in date_tag.text.strip().replace("\r", "").replace("\n", ""):
collection_date = date_tag.find("strong").text.strip()
else:
continue
Expand Down

0 comments on commit 450c608

Please sign in to comment.