@lru_cache(maxsize=None)
def get_session(name, concurrency=50):
    session = requests.Session()
    retry = Retry(total=DEFAULT_RETRIES, backoff_factor=DEFAULT_BACKOFF_FACTOR, status_forcelist=DEFAULT_STATUS_FORCELIST)
    http_adapter = requests.adapters.HTTPAdapter(pool_connections=concurrency, pool_maxsize=concurrency, max_retries=retry)
    session.mount('https://', http_adapter)
    session.mount('http://', http_adapter)
    return session
@lru_cache(maxsize=None)
def get_session(name, concurrency=50):
    session = requests.Session()
    retry = Retry(total=DEFAULT_RETRIES, backoff_factor=DEFAULT_BACKOFF_FACTOR, status_forcelist=DEFAULT_STATUS_FORCELIST)
    http_adapter = requests.adapters.HTTPAdapter(pool_connections=concurrency, pool_maxsize=concurrency, max_retries=retry)
    session.mount('https://', http_adapter)
    session.mount('http://', http_adapter)
    return session