コード例 #1
0
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)
コード例 #2
0
ファイル: clustering.py プロジェクト: xintongxia/InfoRetrival
def docRetrieve(rootPath, queryWords):
    bingSearch = BingSearch.bingSearch()
    for word in queryWords:
        bingSearch.bing_search(word, "", rootPath)