summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 13:02:42 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 13:02:42 +0200
commite7fd546aae12fa97bdd268b3b9c1d1eac13a1034 (patch)
tree42f363e16baefe2af5e34b2b1e991c113c0b6116
parent78edc16e66fccbfb16c522f4453c88a85de61bf4 (diff)
downloadsearxng-e7fd546aae12fa97bdd268b3b9c1d1eac13a1034.tar.gz
searxng-e7fd546aae12fa97bdd268b3b9c1d1eac13a1034.zip
[fix] revert of 1x.com (no valid https certificate)
-rw-r--r--searx/engines/www1x.py5
1 files changed, 3 insertions, 2 deletions
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