我能够将TLS 1.1挂载到我的会话中(需要在我请求的网站上进行req):
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.poolmanager import PoolManager
import ssl
class MyAdapter(HTTPAdapter):
def init_poolmanager(self, connections, maxsize, block=False):
self.poolmanager = PoolManager(num_pools=connections,
maxsize=maxsize,
block=block,
ssl_version=ssl.PROTOCOL_TLSv1_1)
然后将其安装到会话中:
gen_session.mount('https://', MyAdapter())
有没有人知道我能将它安装到代理而不仅仅是本地IP?
非常感谢任何帮助。