From 896ee37eb1c02e013a1884e05fffb6eee5410143 Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Mon, 15 Jul 2024 11:28:21 -0400 Subject: [PATCH] Patch #655 patch --- warn/scrapers/id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warn/scrapers/id.py b/warn/scrapers/id.py index 1f04735..8373816 100644 --- a/warn/scrapers/id.py +++ b/warn/scrapers/id.py @@ -53,7 +53,7 @@ def scrape( # Start finding the link before "Who to contact" html = r.text localizedhtml = html.split("

Who to contact")[0] - soup = BeautifulSoup(localizedhtml, features="lxml") + soup = BeautifulSoup(localizedhtml, features="html5lib") last_url = soup.find_all("a")[-1]["href"] pdf_url = f"{base_url}{last_url}"