mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[enh] reduce the number of http outgoing connections.
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user