def bingSearch(query, index):
global BING_URLS
url = 'http://api.search.live.net/xml.aspx?Appid='+BING_APP_ID+'&query='\
+urllib.quote(query)+'&sources=web&market=en-us&web.count=50&web.offset='+str(index)
xml = minidom.parse(urllib2.urlopen(url))
for node in xml.getElementsByTagName('web:Url'):
BING_URLS.append(node.childNodes[0].data)
# Checks the urls for errors
评论列表
文章目录