From e981b5438cd1bb7976c97c4e1807c8a4ddfba1a9 Mon Sep 17 00:00:00 2001 From: Daniel Simmons-Ritchie <37225902+SimmonsRitchie@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:18:31 -0600 Subject: [PATCH] Tighten docstrings --- city_scrapers/spiders/il_adcrc.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/city_scrapers/spiders/il_adcrc.py b/city_scrapers/spiders/il_adcrc.py index ace4a6fbd..e19b48536 100644 --- a/city_scrapers/spiders/il_adcrc.py +++ b/city_scrapers/spiders/il_adcrc.py @@ -15,8 +15,8 @@ class IlAdcrcSpider(CityScrapersSpider): def parse(self, response): """ - Retrieve the upcoming meetings URL from the main page, which is a JSON feed, - and then parse the JSON to get the meeting details. + Retrieve the URL to the upcoming meetings JSON feed from the main + page and then follow that URL to parse the feed. """ upcoming_meetings_url = response.css( ".cmp-news-feed::attr(data-news-feed-url)" @@ -92,12 +92,14 @@ def _parse_links(self, item): ] def _parse_source(self, response): - """Parse or generate source.""" + """Generate source.""" return response.url def _get_status(self, meeting, item): - """Checks the cancelation status first and then passes a "canceled" string - to the parent's _get_status method so we can rely on default status handling.""" + """Checks the canceledEvent property first and then passes a + "canceled" string to the parent class's _get_status method so + we can rely on default status handling. + """ if item.get("canceledEvent") and item["canceledEvent"] == "true": return super()._get_status(meeting, text="canceled") return super()._get_status(meeting)