mirror of
https://github.com/searxng/searxng.git
synced 2024-12-25 02:30:29 +00:00
[fix] gigablast redirect - closes #575
This commit is contained in:
parent
71d57df9d5
commit
5dd2340bc6
1 changed files with 3 additions and 4 deletions
|
@ -31,9 +31,9 @@ search_string = 'search?{query}'\
|
||||||
'&s={offset}'\
|
'&s={offset}'\
|
||||||
'&format=json'\
|
'&format=json'\
|
||||||
'&qh=0'\
|
'&qh=0'\
|
||||||
'&rxiwd={rxiwd}'\
|
|
||||||
'&qlang={lang}'\
|
'&qlang={lang}'\
|
||||||
'&ff={safesearch}'
|
'&ff={safesearch}'\
|
||||||
|
'&rxikd={rxikd}' # random number - 9 digits
|
||||||
|
|
||||||
# specific xpath variables
|
# specific xpath variables
|
||||||
results_xpath = '//response//result'
|
results_xpath = '//response//result'
|
||||||
|
@ -59,8 +59,7 @@ def request(query, params):
|
||||||
search_path = search_string.format(query=urlencode({'q': query}),
|
search_path = search_string.format(query=urlencode({'q': query}),
|
||||||
offset=offset,
|
offset=offset,
|
||||||
number_of_results=number_of_results,
|
number_of_results=number_of_results,
|
||||||
rxiwd=1,
|
rxikd=str(time())[:9],
|
||||||
# rand=int(time()),
|
|
||||||
lang=language,
|
lang=language,
|
||||||
safesearch=safesearch)
|
safesearch=safesearch)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue