diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-04-26 13:37:11 -0400 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-04-26 13:37:11 -0400 |
commit | ad8611c7558b9de778f4d9bb304d053f2fc99020 (patch) | |
tree | c59a74fa476afae0d92c52bbeadd4947ed6f6f49 /searx/engines | |
parent | 18e7d6070275fbc48aef3d84a7f69811541e1fe5 (diff) | |
parent | 043b269c6ee3157d7ab42fd394ed5a84185980cb (diff) | |
download | searxng-ad8611c7558b9de778f4d9bb304d053f2fc99020.tar.gz searxng-ad8611c7558b9de778f4d9bb304d053f2fc99020.zip |
Merge pull request #301 from dalf/https
engines: use https when possible
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/bing_images.py | 2 | ||||
-rw-r--r-- | searx/engines/currency_convert.py | 4 | ||||
-rw-r--r-- | searx/engines/mixcloud.py | 2 | ||||
-rw-r--r-- | searx/engines/stackoverflow.py | 2 | ||||
-rw-r--r-- | searx/engines/vimeo.py | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py index b8c61c151..d4e3d2b2b 100644 --- a/searx/engines/bing_images.py +++ b/searx/engines/bing_images.py @@ -26,7 +26,7 @@ safesearch = True # search-url base_url = 'https://www.bing.com/' search_string = 'images/search?{query}&count=10&first={offset}' -thumb_url = "http://ts1.mm.bing.net/th?id={ihk}" +thumb_url = "http://ts1.mm.bing.net/th?id={ihk}" # no https, bad certificate # safesearch definitions safesearch_types = {2: 'STRICT', diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py index 4618c82b1..43334b0b9 100644 --- a/searx/engines/currency_convert.py +++ b/searx/engines/currency_convert.py @@ -2,7 +2,7 @@ from datetime import datetime import re categories = [] -url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X' +url = 'https://download.finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={query}=X' weight = 100 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): ) now_date = datetime.now().strftime('%Y%m%d') - url = 'http://finance.yahoo.com/currency/converter-results/{0}/{1}-{2}-to-{3}.html' # noqa + url = 'https://finance.yahoo.com/currency/converter-results/{0}/{1}-{2}-to-{3}.html' # noqa url = url.format( now_date, resp.search_params['ammount'], diff --git a/searx/engines/mixcloud.py b/searx/engines/mixcloud.py index 676e6f845..918ae2908 100644 --- a/searx/engines/mixcloud.py +++ b/searx/engines/mixcloud.py @@ -17,7 +17,7 @@ categories = ['music'] paging = True # search-url -url = 'http://api.mixcloud.com/' +url = 'https://api.mixcloud.com/' search_url = url + 'search/?{query}&type=cloudcast&limit=10&offset={offset}' embedded_url = '<iframe scrolling="no" frameborder="0" allowTransparency="true" ' +\ diff --git a/searx/engines/stackoverflow.py b/searx/engines/stackoverflow.py index 78dba9f68..95ab58c54 100644 --- a/searx/engines/stackoverflow.py +++ b/searx/engines/stackoverflow.py @@ -19,7 +19,7 @@ categories = ['it'] paging = True # search-url -url = 'http://stackoverflow.com/' +url = 'https://stackoverflow.com/' search_url = url+'search?{query}&page={pageno}' # specific xpath variables diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index 7577d12e1..0dcc65b7c 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -23,7 +23,7 @@ categories = ['videos'] paging = True # search-url -base_url = 'http://vimeo.com' +base_url = 'https://vimeo.com' search_url = base_url + '/search/page:{pageno}?{query}' # specific xpath variables |