human_requests.abstraction.proxy_manager

Attributes

Classes

ParsedProxy

Unified proxy representation:

Module Contents

ProxyInput[source]
class ParsedProxy[source]

Unified proxy representation: - scheme: http | https | socks5 | socks5h | … - host: example.com - port: 8080 (or None) - username/password: may be None

scheme: str[source]
host: str[source]
port: int | None[source]
username: str | None[source]
password: str | None[source]
classmethod from_any(value: ProxyInput) ParsedProxy | None[source]

Supports: - URL string: http://user:pass@host:port, socks5://host:1080, … - dict: {“server”: “…”, “username”: “…”, “password”: “…”} If credentials conflict: URL takes precedence over dict fields.

for_playwright() Dict[str, str][source]

Converts ParsedProxy → playwright/patchright/camoufox launch proxy dict: {“server”: “scheme://host[:port]”, “username”: “…”, “password”: “…”}

for_curl() str[source]

Converts ParsedProxy → curl_cffi proxies dict: {“http”: url, “https”: url, “all”: url} Uses a URL with userinfo: scheme://user:pass@host[:port]