python3 报错

 

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

# 全局取消证书验证

ssl._create_default_https_context = ssl._create_unverified_context

 

raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

把HOST从myheader中去掉。

 

posted on 2019-04-20 12:19  潇潇六月雨  阅读(253)  评论(0编辑  收藏  举报

导航