Python에서 https url을 어떻게 열지?기본 액세스 인증을 사용하여 Python에서 https url 읽기
import urllib2
url = "https://user:[email protected]/path/
f = urllib2.urlopen(url)
print f.read()
준다 : 당신은 그런 urllib2.open
에 자격 증명을 전달할 수 없습니다
httplib.InvalidURL: nonnumeric port: '[email protected]'
을 읽을 수있는 방법은 https를 실패한 적이없는 사실로 * 검색 * 이미 요청을받은 것 같은 질문을 게시하기 전에 유래. 검색 결과는 다음과 같습니다. http://stackoverflow.com/search?q=%5Bpython%5D+https –