diff options
-rw-r--r-- | unbiased/sources/fox.py | 1 | ||||
-rw-r--r-- | unbiased/sources/guardian.py | 2 | ||||
-rw-r--r-- | unbiased/sources/thehill.py | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/unbiased/sources/fox.py b/unbiased/sources/fox.py index 573ddef..cb780f5 100644 --- a/unbiased/sources/fox.py +++ b/unbiased/sources/fox.py @@ -20,7 +20,6 @@ class Fox(NewsSource): """ soup = cls._fetch_content(cls.url) - primary = soup.find('div', class_='main-primary')\ .find('div', class_='collection-spotlight')\ .find_all('article', class_='article') diff --git a/unbiased/sources/guardian.py b/unbiased/sources/guardian.py index 044c227..3356b8a 100644 --- a/unbiased/sources/guardian.py +++ b/unbiased/sources/guardian.py @@ -47,7 +47,7 @@ class TheGuardian(NewsSource): # if that ugly, brittle shit fails, fall back on the low-res image if soup.find('img', class_='maxed'): - img = soup.find('img', class_='maxed')['src'] + img = soup.find('img', class_='maxed')['src'] if soup.find('meta', itemprop='image'): img = soup.find('meta', itemprop='image')['content'] if soup.find('img', class_='immersive-main-media__media'): diff --git a/unbiased/sources/thehill.py b/unbiased/sources/thehill.py index 862204e..0c37aec 100644 --- a/unbiased/sources/thehill.py +++ b/unbiased/sources/thehill.py @@ -36,4 +36,3 @@ class TheHill(NewsSource): # fall back on grabbing text from the article desc = soup.find('div', class_='field-items') return desc.text[:200].rsplit(' ', 1)[0] - |