mirror of https://github.com/searx/searx
[fix] revert of 1x.com (no valid https certificate)
This commit is contained in:
parent
78edc16e66
commit
e7fd546aae
|
@ -19,14 +19,15 @@ import re
|
||||||
categories = ['images']
|
categories = ['images']
|
||||||
paging = False
|
paging = False
|
||||||
|
|
||||||
# search-url, no HTTPS
|
# search-url, no HTTPS (there is a valid certificate for https://api2.1x.com/ )
|
||||||
base_url = 'https://1x.com'
|
base_url = 'http://1x.com'
|
||||||
search_url = base_url+'/backend/search.php?{query}'
|
search_url = base_url+'/backend/search.php?{query}'
|
||||||
|
|
||||||
|
|
||||||
# do search-request
|
# do search-request
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
params['url'] = search_url.format(query=urlencode({'q': query}))
|
params['url'] = search_url.format(query=urlencode({'q': query}))
|
||||||
|
print params['url']
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue