commit 6ec8a27c7ec5476a1eaf24e7529d3b8f3d0edf19
parent c5970da711827fa5358f50f085f0cb282ca494b9
Author: Fredrik Helmer <fredrik@helmer.se>
Date: Tue, 5 Sep 2023 20:09:06 +0200
Update soup.find_all tag (again)
The tag has changed on the svt website. Time to update again.
(Check with "View source" in chrome)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/txtv/txtv.py b/txtv/txtv.py
@@ -20,7 +20,7 @@ class Page:
if res.status_code != 200:
err(f'Got HTTP status code {res.status_code}.')
soup = bs4.BeautifulSoup(res.content, 'html.parser')
- self.subpages = soup.find_all('div', class_='Content_screenreaderOnly__1kao2')
+ self.subpages = soup.find_all('div', class_='Content_screenreaderOnly__3Cnkp')
except rq.exceptions.RequestException:
err(f"Could not get '{url}'.")