From 92db1b13bb4bb34d3ecc8632f98f0ce1fe29eef6 Mon Sep 17 00:00:00 2001 From: showerst Date: Fri, 1 Dec 2023 14:54:16 -0500 Subject: [PATCH] TN: Events: Add agenda docs (#4740) --- scrapers/tn/events.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scrapers/tn/events.py b/scrapers/tn/events.py index d41c100a03..931dbc118d 100644 --- a/scrapers/tn/events.py +++ b/scrapers/tn/events.py @@ -153,9 +153,21 @@ def scrape_chamber(self, chamber=None): for doc in agenda: agenda_url = doc.attrib["href"] if agenda_url.endswith(".pdf"): + event.add_document( + "Agenda", + agenda_url, + media_type="application/pdf", + on_duplicate="ignore", + ) for bill in AgendaPdf(source=agenda_url).do_scrape(): event.add_bill(bill) else: + event.add_document( + "Agenda", + agenda_url, + media_type="text/html", + on_duplicate="ignore", + ) for bill in AgendaHtml(source=agenda_url).do_scrape(): event.add_bill(bill)