错误:Max retries exceeded with url

  及时关闭http连接

        session = requests.session()
        session.keep_alive = False  # Max retries exceeded with url 错误,及时关闭http连接
        response = session.get(url, headers=headers)

猜你喜欢

转载自www.cnblogs.com/dailycode/p/9582213.html