Przeglądaj źródła

[mod] disable searchcode SSL verification (unable to get local issuer)

Adam Tauber 9 lat temu
rodzic
commit
b9c8039d74

+ 5
- 0
searx/engines/searchcode_code.py Wyświetl plik

@@ -34,6 +34,11 @@ def request(query, params):
34 34
     params['url'] = search_url.format(query=urlencode({'q': query}),
35 35
                                       pageno=params['pageno']-1)
36 36
 
37
+    # Disable SSL verification
38
+    # error: (60) SSL certificate problem: unable to get local issuer
39
+    # certificate
40
+    params['verify'] = False
41
+
37 42
     return params
38 43
 
39 44
 

+ 5
- 0
searx/engines/searchcode_doc.py Wyświetl plik

@@ -27,6 +27,11 @@ def request(query, params):
27 27
     params['url'] = search_url.format(query=urlencode({'q': query}),
28 28
                                       pageno=params['pageno']-1)
29 29
 
30
+    # Disable SSL verification
31
+    # error: (60) SSL certificate problem: unable to get local issuer
32
+    # certificate
33
+    params['verify'] = False
34
+
30 35
     return params
31 36
 
32 37