summaryrefslogtreecommitdiff
path: root/searx/autocomplete.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 11:43:12 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 11:43:12 +0200
commit78edc16e66fccbfb16c522f4453c88a85de61bf4 (patch)
treeef5844cfb06bf16681fcb34cdb0a322287cf7dc8 /searx/autocomplete.py
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
downloadsearxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.tar.gz
searxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.zip
[enh] reduce the number of http outgoing connections.
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r--searx/autocomplete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index 83e204890..e7361b591 100644
--- a/searx/autocomplete.py
+++ b/searx/autocomplete.py
@@ -111,7 +111,7 @@ def searx_bang(full_query):
def dbpedia(query):
- # dbpedia autocompleter
+ # dbpedia autocompleter, no HTTPS
autocomplete_url = 'http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?' # noqa
response = get(autocomplete_url
@@ -139,7 +139,7 @@ def duckduckgo(query):
def google(query):
# google autocompleter
- autocomplete_url = 'http://suggestqueries.google.com/complete/search?client=toolbar&' # noqa
+ autocomplete_url = 'https://suggestqueries.google.com/complete/search?client=toolbar&' # noqa
response = get(autocomplete_url
+ urlencode(dict(q=query)))