Browse Source

engines: use https when possible

Alexandre Flament 10 years ago
parent
commit
99efd790c8

+ 1
- 1
searx/engines/bing_images.py View File

@@ -26,7 +26,7 @@ safesearch = True
26 26
 # search-url
27 27
 base_url = 'https://www.bing.com/'
28 28
 search_string = 'images/search?{query}&count=10&first={offset}'
29
-thumb_url = "http://ts1.mm.bing.net/th?id={ihk}"
29
+thumb_url = "http://ts1.mm.bing.net/th?id={ihk}" # no https, bad certificate
30 30
 
31 31
 # safesearch definitions
32 32
 safesearch_types = {2: 'STRICT',

+ 2
- 2
searx/engines/currency_convert.py View File

@@ -2,7 +2,7 @@ from datetime import datetime
2 2
 import re
3 3
 
4 4
 categories = []
5
-url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X'
5
+url = 'https://download.finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X'
6 6
 weight = 100
7 7
 
8 8
 parser_re = re.compile(r'^\W*(\d+(?:\.\d+)?)\W*([a-z]{3})\W*(?:in)?\W*([a-z]{3})\W*$', re.I)  # noqa
@@ -44,7 +44,7 @@ def response(resp):
44 44
     )
45 45
 
46 46
     now_date = datetime.now().strftime('%Y%m%d')
47
-    url = 'http://finance.yahoo.com/currency/converter-results/{0}/{1}-{2}-to-{3}.html'  # noqa
47
+    url = 'https://finance.yahoo.com/currency/converter-results/{0}/{1}-{2}-to-{3}.html'  # noqa
48 48
     url = url.format(
49 49
         now_date,
50 50
         resp.search_params['ammount'],

+ 2
- 2
searx/engines/deezer.py View File

@@ -16,11 +16,11 @@ categories = ['music']
16 16
 paging = True
17 17
 
18 18
 # search-url
19
-url = 'http://api.deezer.com/'
19
+url = 'https://api.deezer.com/'
20 20
 search_url = url + 'search?{query}&index={offset}'
21 21
 
22 22
 embedded_url = '<iframe scrolling="no" frameborder="0" allowTransparency="true" ' +\
23
-    'data-src="http://www.deezer.com/plugins/player?type=tracks&id={audioid}" ' +\
23
+    'data-src="https://www.deezer.com/plugins/player?type=tracks&id={audioid}" ' +\
24 24
     'width="540" height="80"></iframe>'
25 25
 
26 26
 

+ 1
- 1
searx/engines/mixcloud.py View File

@@ -17,7 +17,7 @@ categories = ['music']
17 17
 paging = True
18 18
 
19 19
 # search-url
20
-url = 'http://api.mixcloud.com/'
20
+url = 'https://api.mixcloud.com/'
21 21
 search_url = url + 'search/?{query}&type=cloudcast&limit=10&offset={offset}'
22 22
 
23 23
 embedded_url = '<iframe scrolling="no" frameborder="0" allowTransparency="true" ' +\

+ 1
- 1
searx/engines/stackoverflow.py View File

@@ -19,7 +19,7 @@ categories = ['it']
19 19
 paging = True
20 20
 
21 21
 # search-url
22
-url = 'http://stackoverflow.com/'
22
+url = 'https://stackoverflow.com/'
23 23
 search_url = url+'search?{query}&page={pageno}'
24 24
 
25 25
 # specific xpath variables

+ 1
- 1
searx/engines/vimeo.py View File

@@ -23,7 +23,7 @@ categories = ['videos']
23 23
 paging = True
24 24
 
25 25
 # search-url
26
-base_url = 'http://vimeo.com'
26
+base_url = 'https://vimeo.com'
27 27
 search_url = base_url + '/search/page:{pageno}?{query}'
28 28
 
29 29
 # specific xpath variables