From c3db8e7cc1a50af37c0b4a7acd9cc4242c625e06 Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Wed, 6 Nov 2024 15:46:22 -0500 Subject: [PATCH] Patch TX #672 --- warn/scrapers/tx.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/warn/scrapers/tx.py b/warn/scrapers/tx.py index bce5c76..a25a5c5 100644 --- a/warn/scrapers/tx.py +++ b/warn/scrapers/tx.py @@ -31,12 +31,14 @@ def scrape( Returns: the Path where the file is written """ + ssl_verify = False # Problems with certificates in November 2024 + # Set up the cache cache = Cache(cache_dir) # Get the root URL url = "https://www.twc.texas.gov/data-reports/warn-notice" - page = utils.get_url(url) + page = utils.get_url(url, verify=ssl_verify) html = page.text # Cache it @@ -68,7 +70,7 @@ def scrape( # download the excel file year = _get_year(href) ext = _get_ext(href) - excel_path = cache.download(f"tx/{year}{ext}", data_url) + excel_path = cache.download(f"tx/{year}{ext}", data_url, verify=ssl_verify) # Open it up workbook = load_workbook(filename=excel_path)