Merge pull request #1301 from kvch/fix-gigablast-engine

Fix Gigablast engine
This commit is contained in:
Adam Tauber 2018-05-17 10:37:56 +02:00 committed by GitHub
commit b25dccd1ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,7 @@ search_string = 'search?{query}'\
'&qlang={lang}'\
'&ff={safesearch}'\
'&rxiec={rxieu}'\
'&ulse={ulse}'\
'&rand={rxikd}' # current unix timestamp
# specific xpath variables
@ -64,6 +65,7 @@ def request(query, params):
number_of_results=number_of_results,
rxikd=int(time() * 1000),
rxieu=random.randint(1000000000, 9999999999),
ulse=random.randint(100000000, 999999999),
lang=language,
safesearch=safesearch)