Browse Source

[fix] revert of 1x.com (no valid https certificate)

Alexandre Flament 10 years ago
parent
commit
e7fd546aae
1 changed files with 3 additions and 2 deletions
  1. 3 2
      searx/engines/www1x.py

+ 3 - 2
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