def wrap(): f=open('keywords.txt','r') for keyword in f.readlines(): print "WRAPPING THE NY TIMES WHIT KEYWORD: "+keyword.replace('\n','') wrapNYTimes(keyword) print "WRAPPING THE WASHINGTON POST WHIT KEYWORD: "+keyword.replace('\n','') wrapWPost(keyword)
def wrap(): f = open('keywords.txt', 'r') for keyword in f.readlines(): print "WRAPPING THE NY TIMES WHIT KEYWORD: " + keyword.replace( '\n', '') wrapNYTimes(keyword) print "WRAPPING THE WASHINGTON POST WHIT KEYWORD: " + keyword.replace( '\n', '') wrapWPost(keyword)
def perform(): keywordList = wrapKeyword() for i in range(50): if (i < len(keywordList)): keyword = keywordList[i] else: break #keyword, maxPage, past day wrapNYTimes(keyword[0]) wrapWPost(keyword[0]) maestro.analyzeAll()
def perform(): keywordList = wrapKeyword() for i in range(50): if(i<len(keywordList)): keyword = keywordList[i] else: break #keyword, maxPage, past day wrapNYTimes(keyword[0]) wrapWPost(keyword[0]) maestro.analyzeAll()
def perform(): keywordList = wrapKeyword() for i in range(50): if (i < len(keywordList)): keyword = keywordList[i] else: break #keyword, maxPage, past day print "WRAPPING THE NY TIMES WHIT KEYWORD: " + keyword[0] wrapNYTimes(keyword[0]) print "WRAPPING THE WASHINGTON POST WHIT KEYWORD: " + keyword[0] wrapWPost(keyword[0])
def perform(): keywordList = wrapKeyword() for i in range(50): if(i<len(keywordList)): keyword = keywordList[i] else: break #keyword, maxPage, past day print "WRAPPING THE NY TIMES WHIT KEYWORD: "+keyword[0] wrapNYTimes(keyword[0]) print "WRAPPING THE WASHINGTON POST WHIT KEYWORD: "+keyword[0] wrapWPost(keyword[0])