#!/usr/bin/env python3 from unbiasedObjects import * from unbiasedFunctions import * import time def main(): while True: print('-----------------------') run() print('-----------------------') time.sleep(120) def run(): sourceList=[] sourceList.append(NewsSource('New York Times', 'http://nytimes.com', ['', '', 'section id="top-news" class="top-news"', '', 'class="second-column-region region"', 'html.geo-dma-501 .nythpNYRegionPromo')) sourceList.append(NewsSource('Fox News', 'http://foxnews.com', ['

', '
', None, None)) #scrape all urls and build data structure newsSourceArr=buildNewsSourceArr(sourceList) #build the output file HTML outputHTML=buildOutput(newsSourceArr) #print the output file HTML printOutputHTML(outputHTML, '/var/www/html/index.html')#'unbiased.html') if __name__=="__main__": main()