logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 47b4a85fe33cfbb1c83556bdf3c3a6cdfdb178ab
parent: 5cea4f9445e2b08fe91f9b964cc768920aac7dc8
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue, 22 Dec 2015 20:25:57 +0100

[fix] gigablast https + url params

Diffstat:

Msearx/engines/gigablast.py10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/searx/engines/gigablast.py b/searx/engines/gigablast.py @@ -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