Posts python requests绕过系统设置的代理
Post
Cancel

python requests绕过系统设置的代理

第1种方法

1
2
3
session = requests.Session()
session.trust_env = False
response = session.get('http://httpbin.org/')

第2种方法

1
2
proxies = { "http": None, "https": None}
requests.get("http://httpbin.org/", proxies=proxies)

邀请您关注我的公众号,我将会不时地为您推送独家原创的技术内容分享。
This post is licensed under CC BY 4.0 by the author.

Trending Tags