From bef6b884ee0bf9384a45394522b4fbdb8be86179 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 15 Jan 2016 16:05:18 -0500 Subject: [PATCH] cite_wdl: use HTTPS instead of HTTP As of 2016-01-13 http://www.wdl.org permanently redirects to https://www.wdl.org --- cite_wdl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cite_wdl.py b/cite_wdl.py index 797fc12..a30e8b4 100755 --- a/cite_wdl.py +++ b/cite_wdl.py @@ -60,7 +60,7 @@ def _get_web_details(self): """Given self.id, scrapes data from wdl.com and wraps it up in a dictionary. """ - self.url = "http://www.wdl.org/en/item/" + str(self.id) + "/" + self.url = "https://www.wdl.org/en/item/" + str(self.id) + "/" text = urllib2.urlopen(self.url).read() details = {} details['name'] = re.search(r"""(.*?)""", text, flags=re.DOTALL | re.UNICODE).groups(0)[0] @@ -130,4 +130,4 @@ def get_pages(): site = mwclient.Site('en.wikipedia.org') site.login(password.username, password.password) -get_pages() \ No newline at end of file +get_pages()