🕵️♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
feat(core): add impersonate_request_async for the email modules (#528)
BrunoLMa25999452938
diff --git a/user_scanner/core/impersonate.py b/user_scanner/core/impersonate.pyindex d60ca9f..aaa964e 100644--- a/user_scanner/core/impersonate.py+++ b/user_scanner/core/impersonate.py@@ -1,3 +1,4 @@+import asyncioimport threadingfrom typing import Callable, Literal, Optional@@ -57,6 +58,27 @@ def impersonate_request(return session.request(method, url, **kwargs)+async def impersonate_request_async(+ url: str,+ method: Literal["GET", "POST"] = "GET",+ warmup_url: Optional[str] = None,+ impersonate: str = DEFAULT_IMPERSONATE,+ **kwargs,+) -> cffi.Response:+ """``impersonate_request`` for the async email modules. curl_cffi's session+ API is blocking, so it runs in a worker thread; the session cache is shared+ with the synchronous username modules, so cookies carry over either way.+ """+ return await asyncio.to_thread(+ impersonate_request,+ url,+ method,+ warmup_url=warmup_url,+ impersonate=impersonate,+ **kwargs,+ )++def _get_warm_session(impersonate: str, proxy: Optional[str], warmup_url: Optional[str]) -> cffi.Session: