athons
Results
1
comments of
athons
# 为 urllib3 添加 get_host 函数 from urllib.parse import urlparse def get_host(url: str) -> (str, str, str): parsed_url = urlparse(url) return parsed_url.scheme, parsed_url.netloc, parsed_url.path import urllib3 urllib3.get_host = get_host