summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2014-10-11 12:47:30 +0200
committerdalf <alex@al-f.net>2014-10-11 12:47:30 +0200
commit295b1699ced9b79f3b6e5e4375460ca6ddb64431 (patch)
tree7da1b4fa24530307fd87f18640ad4e0be8cd630c /searx/engines
parent599c1137bbc2927c7f0d387ccd65daa2a30a6bf4 (diff)
downloadsearxng-295b1699ced9b79f3b6e5e4375460ca6ddb64431.tar.gz
searxng-295b1699ced9b79f3b6e5e4375460ca6ddb64431.zip
[mod] return only one result from the wikidata engine
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/wikidata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py
index 8c8e7f219..9ba5fcd0b 100644
--- a/searx/engines/wikidata.py
+++ b/searx/engines/wikidata.py
@@ -2,7 +2,7 @@ import json
from requests import get
from urllib import urlencode
-resultCount=2
+resultCount=1
urlSearch = 'https://www.wikidata.org/w/api.php?action=query&list=search&format=json&srnamespace=0&srprop=sectiontitle&{query}'
urlDetail = 'https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&props=labels%7Cinfo%7Csitelinks%7Csitelinks%2Furls%7Cdescriptions%7Cclaims&{query}'
urlMap = 'https://www.openstreetmap.org/?lat={latitude}&lon={longitude}&zoom={zoom}&layers=M'