def docRetrieve(classNames, Queries, rootPath): search = BingSearch.bingSearch() for classname in classNames: category = '&NewsCategory=%27rt_' + classname + '%27' for query in Queries: toSavePath = rootPath+'\\'+classname+'\\' search.bing_search(query, category, toSavePath)
def docRetrieve(rootPath, queryWords): bingSearch = BingSearch.bingSearch() for word in queryWords: bingSearch.bing_search(word, "", rootPath)