首页 > 其他 > 详细

requests.session之set trust_env to disable environment searches for proxies

时间:2017-03-26 15:32:50      阅读:527      评论:0      收藏:0      [点我收藏+]

import requests

s = requests.Session()

s.trust_env = False

This will prevent requests getting any information from its environment: specifically, it‘ll disable environment searches for proxies and for certificate bundles.

参考: 

Proxy bypass detection could add delay of ~4.5 seconds to each request

requests.session之set trust_env to disable environment searches for proxies

原文:http://www.cnblogs.com/BigFishFly/p/6622831.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!