From cbbd1122c78834b1beef349797d142ed6d23218a Mon Sep 17 00:00:00 2001 From: ssstvinc2 Date: Thu, 9 Feb 2017 20:24:25 -0500 Subject: Added/tweaked a few news sources, and added a source list to the page --- html_template/template.html | 4 +++ html_template/unbiased.css | 6 +++++ main.py | 65 ++++++++++++++++++++++++++++++++------------- unbiasedFunctions.py | 10 ++++--- 4 files changed, 63 insertions(+), 22 deletions(-) diff --git a/html_template/template.html b/html_template/template.html index 7869155..76b8681 100755 --- a/html_template/template.html +++ b/html_template/template.html @@ -109,5 +109,9 @@ + +
+ Sources: xxSourcesxx +
diff --git a/html_template/unbiased.css b/html_template/unbiased.css index 83bae40..d1b1460 100755 --- a/html_template/unbiased.css +++ b/html_template/unbiased.css @@ -85,4 +85,10 @@ .middle-story p{ display:block; +} + +#sources{ + clear:both; + padding-top:4em; + font-size:.8em; } \ No newline at end of file diff --git a/main.py b/main.py index 19fe8b0..edec792 100755 --- a/main.py +++ b/main.py @@ -13,10 +13,55 @@ def main(): def run(): sourceList=[] + + + + sourceList.append(NewsSource('NBC News', + 'http://nbcnews.com', + ['top-stories-section', 'panel_hero', '', '', 'href="'], + [], + '', '', + '', '', + None, None)) + + + sourceList.append(NewsSource('Weekly Standard', + 'http://www.weeklystandard.com/', + ['
', 'href="'], + ['