summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2022-04-06 11:37:27 -0500
committerMatt Singleton <matt@xcolour.net>2022-04-06 11:37:27 -0500
commit256875f2403441e0c1627c89de51cc2015945a66 (patch)
tree535fa750dfb63f66efded8ad79e4af528c9c989d
parent4844fa2b8560747a6e57520cf60da871e3a1b263 (diff)
fix washtimes
-rw-r--r--unbiased/sources/washtimes.py6
1 files 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