From 256875f2403441e0c1627c89de51cc2015945a66 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 6 Apr 2022 11:37:27 -0500 Subject: fix washtimes --- unbiased/sources/washtimes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unbiased/sources/washtimes.py b/unbiased/sources/washtimes.py index 1be1838..b52effc 100644 --- a/unbiased/sources/washtimes.py +++ b/unbiased/sources/washtimes.py @@ -4,7 +4,7 @@ class TheWashingtonTimes(NewsSource): name = 'The Washington Times' shortname = 'WashTimes' - url = 'http://www.washingtontimes.com/' + url = 'https://www.washingtontimes.com/' @classmethod def _fetch_urls(cls): @@ -24,8 +24,8 @@ class TheWashingtonTimes(NewsSource): h2s = tuple(h2s) h3s = soup.find('section', class_='more-from desktop-only')\ - .ul.find_all('a') - h3s = [x['href'] for x in h3s] + .find_all('h2', class_='article-headline') + h3s = [x.find('a')['href'] for x in h3s] h3s = tuple(h3s) return h1s, h2s, h3s -- cgit v1.2.3