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()