urllib.py funktioniert nicht mit https?

In meiner Python-App versuche ich, eine https-URL zu öffnen, aber ich erhalte:

 File "C:\Python26\lib\urllib.py", line 215, in open_unknown
    raise IOError, ('url error', 'unknown url type', type)
IOError: [Errno url error] unknown url type: 'https'

mein Code:

import urllib
def generate_embedded_doc(doc_id):
    url = "https://docs.google.com/document/ub?id=" + doc_id + "&embedded=true"
    src = urllib.urlopen(url).read()
    ...
    return src

Antworten auf die Frage(6)

Ihre Antwort auf die Frage