I'm trying to open an https file using python on windows:
https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx?AppNumber=1438224
My current attempt was this:
import urllib
import urllib2
the_url = 'https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx'
values = {'AppNumber':'1438224'}
data = urllib.urlencode(values)
req = urllib2.Request(the_url, data)
handle = urllib2.urlopen(req)
At this point i get an error:
urlopen error unknown url type: https
How can I open this file with python and create a list of links on the page?