commit 8cfc03e22532b910e0698633aa02a40aa31348d6
parent 7529869295babfd328db484432c0b76fae52abb6
Author: Fredrik Helmer <fredrik@helmer.se>
Date: Sun, 25 Dec 2022 11:28:36 +0100
Update soup.find_all tag
txtv seemed to search for Content_screenreaderOnly__Gwyfj
but now it's called
Content_screenreaderOnly__1kao2 (Checked with "View source" in
Chrome).
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
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__Gwyfj')
+ self.subpages = soup.find_all('div', class_='Content_screenreaderOnly__1kao2')
except rq.exceptions.RequestException:
err(f"Could not get '{url}'.")
@@ -218,4 +218,3 @@ def run():
if __name__ == '__main__':
run()
-