【发布时间】:2010-12-26 18:59:51
【问题描述】:
如何在 Python 中打开 https url?
import urllib2
url = "https://user:password@domain.com/path/
f = urllib2.urlopen(url)
print f.read()
给予:
httplib.InvalidURL: nonnumeric port: 'password@domain.com'
【问题讨论】:
-
在 Python 中读取 https URL 的方法是在发布已经被问过的相同问题之前实际 search stackoverflow。以下是搜索结果:stackoverflow.com/search?q=%5Bpython%5D+https
标签: python authentication https passwords