From 91ca7e5c7da3a03ad13cb3999cf46042ac626548 Mon Sep 17 00:00:00 2001 From: Daniel Simmons-Ritchie <37225902+SimmonsRitchie@users.noreply.github.com> Date: Fri, 9 Feb 2024 09:59:51 -0600 Subject: [PATCH] Alter location info and validation This was raising "meeting location has changed errors". It appears the location may have changed. This has been modified to be less specific; dropping the number of the conference room and validating only if the stress address (2079) is present in the description. --- city_scrapers/spiders/cuya_planning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/city_scrapers/spiders/cuya_planning.py b/city_scrapers/spiders/cuya_planning.py index c632c3b..fff6f1b 100644 --- a/city_scrapers/spiders/cuya_planning.py +++ b/city_scrapers/spiders/cuya_planning.py @@ -13,7 +13,7 @@ class CuyaPlanningSpider(CityScrapersSpider): timezone = "America/Detroit" start_urls = ["https://www.countyplanning.us/about/meetings/"] location = { - "name": "County Headquarters, Conference Room 4-407", + "name": "Cuyahoga County Administrative Headquarters", "address": "2079 East 9th St Cleveland, OH 44115", } @@ -66,7 +66,7 @@ def _parse_start(self, item): def _validate_location(self, response): desc_str = " ".join(response.css(".entry-content .large-12 *::text").extract()) - if "4-407" not in desc_str and "virtually" not in desc_str: + if "2079" not in desc_str and "virtually" not in desc_str: raise ValueError("Meeting location has changed") def _parse_links(self, response):