From 7cc5146c146d4c20c23b1fc379949cb0ef8dd77b Mon Sep 17 00:00:00 2001 From: dalf Date: Fri, 20 Feb 2015 22:56:04 +0100 Subject: [PATCH] [fix] btdigg: disable ssl check, avoid this error : SSLError: hostname 'btdigg.org' doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com' --- searx/engines/btdigg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/engines/btdigg.py b/searx/engines/btdigg.py index 944250628..d0f05ec2d 100644 --- a/searx/engines/btdigg.py +++ b/searx/engines/btdigg.py @@ -29,6 +29,10 @@ def request(query, params): params['url'] = search_url.format(search_term=quote(query), pageno=params['pageno']-1) + # FIX: SSLError: hostname 'btdigg.org' + # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com' + params['verify'] = False + return params