commit c783bf6ab94da7735f6607066693dbbba11cdfb3
parent 7529869295babfd328db484432c0b76fae52abb6
Author: voidcase <voidcase@users.noreply.github.com>
Date: Thu, 29 Dec 2022 08:47:38 +0100
Merge pull request #10 from voidcase/pr-findall-fix
Update soup.find_all
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()
-