1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[fix] gigablast https + url params

This commit is contained in:
Adam Tauber 2015-12-22 20:25:57 +01:00
parent 5cea4f9445
commit 47b4a85fe3

View File

@ -1,8 +1,8 @@
"""
Gigablast (Web)
@website http://gigablast.com
@provide-api yes (http://gigablast.com/api.html)
@website https://gigablast.com
@provide-api yes (https://gigablast.com/api.html)
@using-api yes
@results XML
@ -22,8 +22,8 @@ paging = True
number_of_results = 5
# search-url, invalid HTTPS certificate
base_url = 'http://gigablast.com/'
search_string = 'search?{query}&n={number_of_results}&s={offset}&xml=1&qh=0&uxid={uxid}&rand={rand}'
base_url = 'https://gigablast.com/'
search_string = 'search?{query}&n={number_of_results}&s={offset}&format=xml&qh=0&rxiyd={rxiyd}&rand={rand}'
# specific xpath variables
results_xpath = '//response//result'
@ -40,7 +40,7 @@ def request(query, params):
query=urlencode({'q': query}),
offset=offset,
number_of_results=number_of_results,
uxid=randint(10000, 10000000),
rxiyd=randint(10000, 10000000),
rand=int(time()))
params['url'] = base_url + search_path