diff options
author | Matt Singleton <msingleton@aclu.org> | 2017-10-14 19:35:35 -0400 |
---|---|---|
committer | Matt Singleton <msingleton@aclu.org> | 2017-10-14 19:35:35 -0400 |
commit | 04e19c02ba74cfe6629afbb84fc427b92ce18850 (patch) | |
tree | eea71e536854a5534bc37867c03e8134bd53ab38 | |
parent | e2e504aac4b74d875da34b04f06b5409103d78e1 (diff) |
code cleanup
-rw-r--r-- | unbiased/sources/abc.py | 1 | ||||
-rw-r--r-- | unbiased/sources/base.py | 2 |
2 files changed, 1 insertions, 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) |