Skip to content

Commit 8ab7db8

Browse files
author
Adam Harrison-Fuller
committed
Fix up the CSS Selector so it only matches on the correct title
1 parent 2051201 commit 8ab7db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uk_bin_collection/uk_bin_collection/councils/NorthHertfordshireDistrictCouncil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def parse_data(self, page: str, **kwargs) -> dict:
151151

152152
# Looking for bin types in the exact HTML structure
153153
bin_type_elements = soup.select(
154-
"div.formatting_bold.formatting_size_bigger.formatting span.value-as-text"
154+
"div.page_cell.contains_widget:first-of-type div.formatting_bold.formatting_size_bigger.formatting span.value-as-text"
155155
)
156156
# print(f"Found {len(bin_type_elements)} bin type elements")
157157

0 commit comments

Comments
 (0)