()
| 37 | |
| 38 | |
| 39 | def _get_httpx_client(): |
| 40 | global _httpx_client |
| 41 | if _httpx_client is None and HAS_HTTPX: |
| 42 | proxy = CONFIG.get("proxy") |
| 43 | transport = httpx.HTTPTransport(proxy=proxy) if proxy else None |
| 44 | _httpx_client = httpx.Client(transport=transport, timeout=CONFIG["request_timeout_sec"], verify=True) |
| 45 | return _httpx_client |
| 46 | |
| 47 | |
| 48 | def load_cookie() -> tuple: |