| | |
open an https file
![]() |
•
•
Join Date: Jan 2006
Posts: 2
Reputation:
Solved Threads: 0
I'm trying to open an https file using python on windows:
https://www3.eub.gov.ab.ca/eub/dds/i...Number=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?
https://www3.eub.gov.ab.ca/eub/dds/i...Number=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?
Maybe this will help?
http://www.noah.org/python/https/
Looks to be a Python module that will help you download from HTTPS sites. I assume regular HTTP GET commands, etc, won't work through an encrypted connection.
http://www.noah.org/python/https/
Looks to be a Python module that will help you download from HTTPS sites. I assume regular HTTP GET commands, etc, won't work through an encrypted connection.
Alex Cavnar, aka alc6379
![]() |
Similar Threads
- Open Excel File (VB.NET)
- How to open txt file (Visual Basic 4 / 5 / 6)
- Open Excel file from Visual Basic (Visual Basic 4 / 5 / 6)
- open a PDF file in visual basic (Visual Basic 4 / 5 / 6)
- "Cannot Open Include File" MS Visual C++ error (C++)
- how to open vaw file (Java)
Other Threads in the Python Forum
- Previous Thread: Experimenting with List Comprehension (Python)
- Next Thread: Suffocated by Python
| Thread Tools | Search this Thread |
address alarm anydbm app beginner cipher conversion coordinates curves cx-freeze data development dictionary directory dynamic examples excel feet file float format function generator getvalue gui halp handling homework images import input ip itunes java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path port prime programming projects py2exe pygame pyglet pymailer python queue random recursion recursive screensaverloopinactive script scrolledtext searchingfile shebang slicenotation split ssh string strings table terminal text thread threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wx.wizard wxpython xlwt






