diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-12-15 23:11:15 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-12-15 23:11:15 +0100 |
commit | 19b1cedc23e816f77f076b47555c577065f34f86 (patch) | |
tree | 2c53d76a74f2ff2da7dfabdf4bc7de5e69069848 | |
parent | 81ae69201d8d37efb84130f68e3feb661de0319d (diff) | |
parent | 70fc1002db030aba3447006e49433662c330e343 (diff) | |
download | searxng-19b1cedc23e816f77f076b47555c577065f34f86.tar.gz searxng-19b1cedc23e816f77f076b47555c577065f34f86.zip |
Merge pull request #151 from pointhi/kickass_fix
[fix] fix kickass engine
-rw-r--r-- | searx/engines/kickass.py | 3 | ||||
-rw-r--r-- | searx/search.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py index bd11a3b6b..de7324141 100644 --- a/searx/engines/kickass.py +++ b/searx/engines/kickass.py @@ -33,6 +33,9 @@ def request(query, params): params['url'] = search_url.format(search_term=quote(query), pageno=params['pageno']) + # FIX: SSLError: hostname 'kickass.so' doesn't match either of '*.kickass.to', 'kickass.to' + params['verify'] = False + return params diff --git a/searx/search.py b/searx/search.py index 4058cba20..5e036ccca 100644 --- a/searx/search.py +++ b/searx/search.py @@ -59,7 +59,7 @@ def threaded_requests(requests): # get default reqest parameter def default_request_params(): return { - 'method': 'GET', 'headers': {}, 'data': {}, 'url': '', 'cookies': {}} + 'method': 'GET', 'headers': {}, 'data': {}, 'url': '', 'cookies': {}, 'verify': True} # create a callback wrapper for the search engine results @@ -469,7 +469,8 @@ class Search(object): headers=request_params['headers'], hooks=dict(response=callback), cookies=request_params['cookies'], - timeout=engine.timeout + timeout=engine.timeout, + verify=request_params['verify'] ) # specific type of request (GET or POST) |