您当前的位置: 首页 >  git
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

HTTPSConnectionPool(host=‘api.github.com‘, port=443): Max retries exceeded with url

软件工程小施同学 发布时间:2020-07-10 22:40:29 ,浏览量:0

# 解决“Max retries exceeded with url”问题
s = requests.session()
s.keep_alive = False
#  忽略警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
# HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url
requests.packages.urllib3.disable_warnings()

r = requests.get(url, headers=headers, verify=False)
关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0577s