urllib.error.HTTPError:HTTP错误401:从网络下载Zip文件时未经授权

时间:2018-10-02 11:18:51

标签: python python-3.x

还有其他方法可以下载相同文件(即wget / svn)

import urllib.request
import zipfile
import ssl

ssl._create_default_https_context = ssl._create_unverified_context



urllib.request.urlretrieve("https://svne1.access.nokiasiemensnetworks.com/isource/svnroot/oss_cpf/components/art_cpfwas855/java8_fixes/fixpack8_0_5_17/8.0.5.17-WS-IBMWASJAVA-Linux.zip","fixpack8_0_5_17")

with zipfile.ZipFile('fixpack8_0_5_17',"r") as z :
    z.extractall("downloads//")

print("Download Complete")

0 个答案:

没有答案