Ver código fonte

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

Fix Gigablast engine
Adam Tauber 6 anos atrás
pai
commit
b25dccd1ae
Nenhuma conta conectada ao e-mail do autor de commit
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      searx/engines/gigablast.py

+ 2
- 0
searx/engines/gigablast.py Ver arquivo

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