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

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

软件工程小施同学 发布时间:2020-07-09 22:17:35 ,浏览量:0

python写爬虫报错

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

 

解决方法,在

requests.get(url, headers=headers)

前,

添加如下代码

# 解决“Max retries exceeded with url”问题
s = requests.session()
s.keep_alive = False
关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0626s