From 04e19c02ba74cfe6629afbb84fc427b92ce18850 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 14 Oct 2017 19:35:35 -0400 Subject: code cleanup --- unbiased/sources/abc.py | 1 - unbiased/sources/base.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/unbiased/sources/abc.py b/unbiased/sources/abc.py index 2ea7aff..d9092a2 100644 --- a/unbiased/sources/abc.py +++ b/unbiased/sources/abc.py @@ -18,7 +18,6 @@ class ABC(NewsSource): h1 = soup.find('article', class_='hero')\ .find('div', class_='caption-wrapper').h1.a['href'] h1s = (h1,) - print(h1) # get secondary headlines h2s = soup.find('div', id='row-2')\ diff --git a/unbiased/sources/base.py b/unbiased/sources/base.py index 861d7f4..9f51287 100644 --- a/unbiased/sources/base.py +++ b/unbiased/sources/base.py @@ -50,7 +50,7 @@ class NewsSource(object): @classmethod def build(cls): h1s, h2s, h3s = cls._fetch_urls() - logger.debug('Fetched {} h1s, {} h2s, {} h3s'.format(len(h1s), len(h2s), len(h3s))) + logger.info('Fetched {} h1s, {} h2s, {} h3s'.format(len(h1s), len(h2s), len(h3s))) h1s = tuple(cls._normalize_url(x) for x in h1s) h2s = tuple(cls._normalize_url(x) for x in h2s) h3s = tuple(cls._normalize_url(x) for x in h3s) -- cgit v1.2.3