summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2018-03-05 21:32:08 -0500
committerMatt Singleton <matt@xcolour.net>2018-03-05 21:32:08 -0500
commitc4bb90470c7419a000ada16b203d71ff4a070576 (patch)
tree6f374c7e46fe645fb920c2130cdcb515435fa29d
parent88fde49d7ed5656e5398a8e1b7e8b1b70af5fcbc (diff)
linting
-rw-r--r--unbiased/sources/fox.py1
-rw-r--r--unbiased/sources/guardian.py2
-rw-r--r--unbiased/sources/thehill.py1
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]
-