From 6a56703b78bb641af4851d650bdf86c87daecbf0 Mon Sep 17 00:00:00 2001 From: NewAgeAirbender <34139325+NewAgeAirbender@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:12:34 -0600 Subject: [PATCH 1/3] OH: check for name CSS --- scrapers_next/oh/people.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrapers_next/oh/people.py b/scrapers_next/oh/people.py index d963ad2ef2..592c7c99b4 100644 --- a/scrapers_next/oh/people.py +++ b/scrapers_next/oh/people.py @@ -25,7 +25,10 @@ class LegPartial: class LegList(HtmlListPage): def process_item(self, item): - name = CSS(".media-overlay-caption-text-line-1").match_one(item).text + try: + name = CSS(".media-overlay-caption-text-line-1").match_one(item).text + except SelectorError: + self.skip("vacant") if "vacant" in name.lower(): self.skip("vacant") From b046f92d448b4acc3d8291bd51345edb7af5aafc Mon Sep 17 00:00:00 2001 From: NewAgeAirbender <34139325+NewAgeAirbender@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:16:37 -0600 Subject: [PATCH 2/3] NM: 2024 metadata --- scrapers/nm/__init__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scrapers/nm/__init__.py b/scrapers/nm/__init__.py index 2ff314e217..4cc3b6b513 100644 --- a/scrapers/nm/__init__.py +++ b/scrapers/nm/__init__.py @@ -184,8 +184,17 @@ class NewMexico(State): "name": "2023 Regular Session", "start_date": "2023-01-17", "end_date": "2023-03-18", - "active": True, + "active": False, }, + # { + # "_scraped_name": "2024 Regular", + # "classification": "primary", + # "identifier": "2024", + # "name": "2024 Regular Session", + # "start_date": "2024-01-16", + # "end_date": "2024-02-15", + # "active": True, + # }, ] ignored_scraped_sessions = [ "2010 2nd Special", From 7cc312569a49bae7a764a87100996960cc1c5a1a Mon Sep 17 00:00:00 2001 From: NewAgeAirbender <34139325+NewAgeAirbender@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:20:53 -0600 Subject: [PATCH 3/3] NM: flip 2023 back --- scrapers/nm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/nm/__init__.py b/scrapers/nm/__init__.py index 4cc3b6b513..f91ef13b3d 100644 --- a/scrapers/nm/__init__.py +++ b/scrapers/nm/__init__.py @@ -184,7 +184,7 @@ class NewMexico(State): "name": "2023 Regular Session", "start_date": "2023-01-17", "end_date": "2023-03-18", - "active": False, + "active": True, }, # { # "_scraped_name": "2024 Regular",