From 78edc16e66fccbfb16c522f4453c88a85de61bf4 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 2 May 2015 11:43:12 +0200 Subject: [enh] reduce the number of http outgoing connections. engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter --- searx/engines/www1x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines/www1x.py') diff --git a/searx/engines/www1x.py b/searx/engines/www1x.py index a68c105ce..df9254f2e 100644 --- a/searx/engines/www1x.py +++ b/searx/engines/www1x.py @@ -19,8 +19,8 @@ import re categories = ['images'] paging = False -# search-url -base_url = 'http://1x.com' +# search-url, no HTTPS +base_url = 'https://1x.com' search_url = base_url+'/backend/search.php?{query}' -- cgit v1.2.3 From e7fd546aae12fa97bdd268b3b9c1d1eac13a1034 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 2 May 2015 13:02:42 +0200 Subject: [fix] revert of 1x.com (no valid https certificate) --- searx/engines/www1x.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'searx/engines/www1x.py') diff --git a/searx/engines/www1x.py b/searx/engines/www1x.py index df9254f2e..0524cc220 100644 --- a/searx/engines/www1x.py +++ b/searx/engines/www1x.py @@ -19,14 +19,15 @@ import re categories = ['images'] paging = False -# search-url, no HTTPS -base_url = 'https://1x.com' +# search-url, no HTTPS (there is a valid certificate for https://api2.1x.com/ ) +base_url = 'http://1x.com' search_url = base_url+'/backend/search.php?{query}' # do search-request def request(query, params): params['url'] = search_url.format(query=urlencode({'q': query})) + print params['url'] return params -- cgit v1.2.3 From 59ee040424ccdef51f3616ed6487522bdaa44f3f Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 2 May 2015 15:28:08 +0200 Subject: [fix] remove a useless print --- searx/engines/www1x.py | 1 - 1 file changed, 1 deletion(-) (limited to 'searx/engines/www1x.py') diff --git a/searx/engines/www1x.py b/searx/engines/www1x.py index 0524cc220..61cdaf6b0 100644 --- a/searx/engines/www1x.py +++ b/searx/engines/www1x.py @@ -27,7 +27,6 @@ search_url = base_url+'/backend/search.php?{query}' # do search-request def request(query, params): params['url'] = search_url.format(query=urlencode({'q': query})) - print params['url'] return params -- cgit v1.2.3