requests.exceptions.ProxyError: HTTPSConnectionPool(host='xxx', port=443)

# 绕过系统设置的代理
# 方法一:
session = requests.Session()
session.trust_env = False
response = session.get('http://ff2.pw') 

# 方法二:
proxies = {"http": None, "https": None}
requests.get("http://ff2.pw", proxies=proxies)

 

posted @ 2023-07-03 23:24  SyrLy  阅读(67)  评论(0)    收藏  举报