diff options
author | Alexandre Flament <alex@al-f.net> | 2015-04-26 18:13:09 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2015-04-26 18:13:09 +0200 |
commit | 99efd790c8e24a9e7d1ab1220e1da96cdd0a8003 (patch) | |
tree | 985537cb65dd5de4db8fdb419e9f7b0be71b3257 /searx/engines/currency_convert.py | |
parent | 2be52b74ad9e30474d553750d802199ee8cc4844 (diff) | |
download | searxng-99efd790c8e24a9e7d1ab1220e1da96cdd0a8003.tar.gz searxng-99efd790c8e24a9e7d1ab1220e1da96cdd0a8003.zip |
engines: use https when possible
Diffstat (limited to 'searx/engines/currency_convert.py')
-rw-r--r-- | searx/engines/currency_convert.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'], |