python 绕过proxy

2022-06-12  本文已影响0人  Sirius之剣
proxies = {
  "http": None,
  "https": None,
}

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

使用session的话

s = requests.Session()
s.trust_env = False
上一篇 下一篇

猜你喜欢

热点阅读