fix wikipedia search (they changed the xml namespace)
This commit is contained in:
parent
5301b25cf6
commit
e2fb20f64c
|
@ -20,7 +20,7 @@ def wiki(inp):
|
||||||
|
|
||||||
x = http.get_xml(search_url, search=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')
|
items = x.findall(ns + 'Section/' + ns + 'Item')
|
||||||
|
|
||||||
if items == []:
|
if items == []:
|
||||||
|
|
Loading…
Reference in New Issue