From 55c362187bffa88313abb981eccb2337cd55c4f7 Mon Sep 17 00:00:00 2001 From: dgw Date: Fri, 29 Apr 2016 07:00:55 -0500 Subject: [PATCH] Switch to HTTPS API URL This alphabet soup closes #5. --- wolframalpha/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolframalpha/__init__.py b/wolframalpha/__init__.py index efe2733..468e509 100644 --- a/wolframalpha/__init__.py +++ b/wolframalpha/__init__.py @@ -77,7 +77,7 @@ class Client(object): input=query, appid=self.app_id, )) - url = 'http://api.wolframalpha.com/v2/query?' + query + url = 'https://api.wolframalpha.com/v2/query?' + query resp = urllib.request.urlopen(url) assert resp.headers.get_content_type() == 'text/xml' assert resp.headers.get_param('charset') == 'utf-8'