summaryrefslogtreecommitdiff
path: root/searx/engines/currency_convert.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-04-26 13:37:11 -0400
committerAdam Tauber <asciimoo@gmail.com>2015-04-26 13:37:11 -0400
commitad8611c7558b9de778f4d9bb304d053f2fc99020 (patch)
treec59a74fa476afae0d92c52bbeadd4947ed6f6f49 /searx/engines/currency_convert.py
parent18e7d6070275fbc48aef3d84a7f69811541e1fe5 (diff)
parent043b269c6ee3157d7ab42fd394ed5a84185980cb (diff)
downloadsearxng-ad8611c7558b9de778f4d9bb304d053f2fc99020.tar.gz
searxng-ad8611c7558b9de778f4d9bb304d053f2fc99020.zip
Merge pull request #301 from dalf/https
engines: use https when possible
Diffstat (limited to 'searx/engines/currency_convert.py')
-rw-r--r--searx/engines/currency_convert.py4
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'],