From fc1fe7fe336d065a59a5df62c469909a3717b8d8 Mon Sep 17 00:00:00 2001 From: alexobaseki Date: Thu, 24 Oct 2024 15:37:16 -0400 Subject: [PATCH] TX: strip title from event participants name --- scrapers/tx/events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scrapers/tx/events.py b/scrapers/tx/events.py index d5a7661662..ea9ef2823e 100644 --- a/scrapers/tx/events.py +++ b/scrapers/tx/events.py @@ -88,6 +88,7 @@ def scrape_event_page(self, session, chamber, url, datetime): chair = None if "CHAIR" in metainfo: chair = metainfo["CHAIR"] + chair = re.sub(r"(Rep\. |Senator |Representative |Sen\. )", "", chair) plaintext = re.sub(r"\s+", " ", plaintext).strip() bills = bill_re.findall(plaintext)