Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cite_wdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""<span class="item_title" itemprop="name">(.*?)</span></h1>""", text, flags=re.DOTALL | re.UNICODE).groups(0)[0]
Expand Down Expand Up @@ -130,4 +130,4 @@ def get_pages():
site = mwclient.Site('en.wikipedia.org')
site.login(password.username, password.password)

get_pages()
get_pages()