fix wikipedia search (they changed the xml namespace)

This commit is contained in:
Ryan Hitchman 2011-10-05 00:27:17 -05:00
parent 5301b25cf6
commit e2fb20f64c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def wiki(inp):
x = http.get_xml(search_url, search=inp)
ns = '{http://opensearch.org/searchsuggest2}'
ns = '{http://www.mediawiki.org/xml/api/}'
items = x.findall(ns + 'Section/' + ns + 'Item')
if items == []: