python 绕过proxy

proxies = {
  "http": None,
  "https": None,
}

r=requests.get("http://example.org", proxies=proxies)

使用session的话

s = requests.Session()
s.trust_env = False

你可能感兴趣的:(python 绕过proxy)