From c4bb90470c7419a000ada16b203d71ff4a070576 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Mon, 5 Mar 2018 21:32:08 -0500 Subject: linting --- unbiased/sources/fox.py | 1 - unbiased/sources/guardian.py | 2 +- unbiased/sources/thehill.py | 1 - 3 files changed, 1 insertion(+), 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] - -- cgit v1.2.3