Skip to content

Commit

Permalink
fix: London Borough Sutton
Browse files Browse the repository at this point in the history
  • Loading branch information
m26dvd committed Dec 12, 2024
1 parent 86ecf37 commit 1eab20c
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@ def parse_data(self, page: str, **kwargs) -> dict:
bin_type = service.get_text(
strip=True
) # Bin type name (e.g., 'Food waste', 'Mixed recycling')
if bin_type == "Bulky waste":
if bin_type == "Bulky Waste":
continue
service_details = service.find_next("div", class_="govuk-grid-row")

next_collection = (
service_details.find("dt", string="Next collection")
.find_next_sibling("dd")
.get_text(strip=True)
(
service_details.find("dt", string="Next collection")
.find_next_sibling("dd")
.get_text(strip=True)
)
.replace("(this collection has been adjusted from its usual time)", "")
.strip()
)

next_collection = datetime.strptime(
Expand Down

0 comments on commit 1eab20c

Please sign in to comment.