2026-02-22 09:01:10 +01:00
|
|
|
"""cloakbrowser — Stealth Chromium that passes every bot detection test.
|
|
|
|
|
|
|
|
|
|
Drop-in Playwright replacement with source-level fingerprint patches.
|
|
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
from cloakbrowser import launch
|
|
|
|
|
|
|
|
|
|
browser = launch()
|
|
|
|
|
page = browser.new_page()
|
|
|
|
|
page.goto("https://protected-site.com")
|
|
|
|
|
browser.close()
|
|
|
|
|
"""
|
|
|
|
|
|
2026-03-04 20:11:30 +01:00
|
|
|
from .browser import launch, launch_async, launch_context, launch_persistent_context, launch_persistent_context_async, ProxySettings
|
2026-02-23 07:58:50 +01:00
|
|
|
from .config import CHROMIUM_VERSION, get_default_stealth_args
|
2026-02-25 19:20:57 +01:00
|
|
|
from .download import binary_info, check_for_update, clear_cache, ensure_binary
|
2026-02-22 09:01:10 +01:00
|
|
|
from ._version import __version__
|
|
|
|
|
|
2026-03-08 12:49:42 +03:00
|
|
|
# Human-like behavioral layer (optional)
|
|
|
|
|
def __getattr__(name):
|
|
|
|
|
if name == "HumanConfig":
|
|
|
|
|
from .human.config import HumanConfig
|
|
|
|
|
globals()["HumanConfig"] = HumanConfig
|
|
|
|
|
return HumanConfig
|
|
|
|
|
if name == "resolve_human_config":
|
|
|
|
|
from .human.config import resolve_config
|
|
|
|
|
globals()["resolve_human_config"] = resolve_config
|
|
|
|
|
return resolve_config
|
|
|
|
|
raise AttributeError(f"module 'cloakbrowser' has no attribute {name}")
|
|
|
|
|
|
2026-02-22 09:01:10 +01:00
|
|
|
__all__ = [
|
|
|
|
|
"launch",
|
|
|
|
|
"launch_async",
|
|
|
|
|
"launch_context",
|
2026-03-04 12:19:56 +03:00
|
|
|
"launch_persistent_context",
|
|
|
|
|
"launch_persistent_context_async",
|
2026-02-22 09:01:10 +01:00
|
|
|
"ensure_binary",
|
|
|
|
|
"clear_cache",
|
|
|
|
|
"binary_info",
|
2026-02-25 19:20:57 +01:00
|
|
|
"check_for_update",
|
2026-02-22 09:01:10 +01:00
|
|
|
"CHROMIUM_VERSION",
|
2026-02-23 07:58:50 +01:00
|
|
|
"get_default_stealth_args",
|
2026-03-04 20:11:30 +01:00
|
|
|
"ProxySettings",
|
2026-03-08 12:49:42 +03:00
|
|
|
"HumanConfig",
|
|
|
|
|
"resolve_human_config",
|
2026-02-22 09:01:10 +01:00
|
|
|
"__version__",
|
|
|
|
|
]
|
2026-03-08 12:49:42 +03:00
|
|
|
|