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 View File

19
 categories = ['images']
19
 categories = ['images']
20
 paging = False
20
 paging = False
21
 
21
 
22
-# search-url, no HTTPS
23
-base_url = 'https://1x.com'
22
+# search-url, no HTTPS (there is a valid certificate for https://api2.1x.com/ )
23
+base_url = 'http://1x.com'
24
 search_url = base_url+'/backend/search.php?{query}'
24
 search_url = base_url+'/backend/search.php?{query}'
25
 
25
 
26
 
26
 
27
 # do search-request
27
 # do search-request
28
 def request(query, params):
28
 def request(query, params):
29
     params['url'] = search_url.format(query=urlencode({'q': query}))
29
     params['url'] = search_url.format(query=urlencode({'q': query}))
30
+    print params['url']
30
 
31
 
31
     return params
32
     return params
32
 
33