From 627d900d74963d544f861b08977f15fc8bc93817 Mon Sep 17 00:00:00 2001 From: Jordan Pitcairn Date: Fri, 8 Nov 2024 20:20:42 +0000 Subject: [PATCH 1/2] fix: NBBC Date Fix --- .../councils/NuneatonBedworthBoroughCouncil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uk_bin_collection/uk_bin_collection/councils/NuneatonBedworthBoroughCouncil.py b/uk_bin_collection/uk_bin_collection/councils/NuneatonBedworthBoroughCouncil.py index ed710e0d4f..5e721ddd8a 100644 --- a/uk_bin_collection/uk_bin_collection/councils/NuneatonBedworthBoroughCouncil.py +++ b/uk_bin_collection/uk_bin_collection/councils/NuneatonBedworthBoroughCouncil.py @@ -36,7 +36,7 @@ def parse_data(self, page: str, **kwargs) -> dict: for date in v: dict_data = { "type": k, - "collectionDate": date + "collectionDate": datetime.strptime(date, "%Y-%m-%d").strftime(date_format) } data["bins"].append(dict_data) From 5ea22ff50006ad0839291af40593d204bf15e59a Mon Sep 17 00:00:00 2001 From: Jordan Pitcairn Date: Fri, 8 Nov 2024 20:34:46 +0000 Subject: [PATCH 2/2] docs: Added Nuneaton Bedworth Borough Council to wiki --- wiki/Councils.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wiki/Councils.md b/wiki/Councils.md index a6395e3708..91b65ef196 100644 --- a/wiki/Councils.md +++ b/wiki/Councils.md @@ -153,6 +153,7 @@ This document is still a work in progress, don't worry if your council isn't lis - [Norwich City Council](#norwich-city-council) - [Northumberland Council](#northumberland-council) - [Nottingham City Council](#nottingham-city-council) +- [Nuneaton and Bedworth Borough Council](#nuneaton-and-bedworth-borough-council) - [Oldham Council](#oldham-council) - [Oxford City Council](#oxford-city-council) - [Perth and Kinross Council](#perth-and-kinross-council) @@ -1873,6 +1874,18 @@ Additional parameters: --- +### Nuneaton and Bedworth Borough Council +```commandline +python collect_data.py NuneatonBedworthBoroughCouncil https://www.nuneatonandbedworth.gov.uk -s -n "XXXXXXX XXXX" +``` +Additional parameters: +- `-s` - skip get URL +- `-n` - house number + +Note: Enter ONLY the street name in the house number parameter. Ensure street name is entered as exactly on the council website. (Some street names may also include the town) + +--- + ### Oldham Council ```commandline python collect_data.py OldhamCouncil https://portal.oldham.gov.uk/bincollectiondates/details?uprn=422000033556