[mod] return only one result from the wikidata engine
commit295b1699ced9b79f3b6e5e4375460ca6ddb64431
authordalf <alex@al-f.net>
dateSat 11 Oct 2014, 12:47 (12 years ago)
parent599c113
searx/engines/wikidata.py+1−1
@@ -2,7 +2,7 @@ import json
22from requests import get
33from urllib import urlencode
44
5−resultCount=2
5+resultCount=1
66urlSearch = 'https://www.wikidata.org/w/api.php?action=query&list=search&format=json&srnamespace=0&srprop=sectiontitle&{query}'
77urlDetail = 'https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&props=labels%7Cinfo%7Csitelinks%7Csitelinks%2Furls%7Cdescriptions%7Cclaims&{query}'
88urlMap = 'https://www.openstreetmap.org/?lat={latitude}&lon={longitude}&zoom={zoom}&layers=M'