mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 00:09:18 +02: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:
parent
bbd83f5a51
commit
78edc16e66
10 changed files with 25 additions and 10 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue