Skip to content

Commit 1b86507

Browse files
authored
Merge pull request #1476 from adamhf/master
Fix up North Herts Council CSS Selector so it only matches on the correct title
2 parents 2051201 + 8ab7db8 commit 1b86507

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)