From 1be12dcb99c4ff4a560c15887697fb54452b5e6f Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Mon, 7 Nov 2022 14:38:56 +0100 Subject: [PATCH] links for portals in more boroughs --- ...obtain_livestream_data_and_load_into_database.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/etl/planning_data/obtain_livestream_data_and_load_into_database.py b/etl/planning_data/obtain_livestream_data_and_load_into_database.py index a162260c..dacb2b78 100644 --- a/etl/planning_data/obtain_livestream_data_and_load_into_database.py +++ b/etl/planning_data/obtain_livestream_data_and_load_into_database.py @@ -192,6 +192,19 @@ def obtain_entry_link(provided_link, application_id): if "Newham" in application_id: # sadly, specific links seems impossible return "https://pa.newham.gov.uk/online-applications/" + if "Westminster" in application_id: + # sadly, specific links seems impossible + return "https://idoxpa.westminster.gov.uk/online-applications/" + if "Enfield" in application_id: + # sadly, specific links seems impossible + return "https://planningandbuildingcontrol.enfield.gov.uk/online-applications/" + if "Southwark" in application_id: + # sadly, specific links seems impossible + return "https://planning.southwark.gov.uk/online-applications/" + if "Hammersmith" in application_id: + return "https://public-access.lbhf.gov.uk/online-applications/search.do?action=simple&searchType=Application" + if "City_of_London" in application_id: + return "https://www.planning2.cityoflondon.gov.uk/online-applications/" return None # Richmond is simply broken