|
@@ -69,7 +69,7 @@ def wikipedia(query):
|
69
|
69
|
# wikipedia autocompleter
|
70
|
70
|
url = 'https://en.wikipedia.org/w/api.php?action=opensearch&{0}&limit=10&namespace=0&format=json' # noqa
|
71
|
71
|
|
72
|
|
- resp = loads(get(url.format(urlencode(dict(q=query)))).text)
|
|
72
|
+ resp = loads(get(url.format(urlencode(dict(search=query)))).text)
|
73
|
73
|
if len(resp) > 1:
|
74
|
74
|
return resp[1]
|
75
|
75
|
return []
|