mirror of
https://github.com/CloakHQ/CloakBrowser.git
synced 2026-06-23 11:41:46 +02:00
The `proxy` parameter now accepts a Playwright proxy dict
({server, bypass, username, password}) in addition to URL strings.
Dict proxies are passed directly to Playwright, enabling bypass
lists and other advanced proxy options.
- Add ProxySettings TypedDict for Python type safety
- Extract server URL from dict proxies for geoip resolution
- Handle dict proxy args/auth in Puppeteer wrapper
- Strip inline credentials from dict proxy server URL in Puppeteer
- Fix JS launchContext() double-setting timezone (binary flag + context)
- Remove unnecessary non-null assertions in TS geoip helpers
- Use nullish coalescing for password fallbacks
- Add unit tests for geoip with dict proxy input
34 lines
945 B
Python
34 lines
945 B
Python
"""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()
|
|
"""
|
|
|
|
from .browser import launch, launch_async, launch_context, launch_persistent_context, launch_persistent_context_async, ProxySettings
|
|
from .config import CHROMIUM_VERSION, get_default_stealth_args
|
|
from .download import binary_info, check_for_update, clear_cache, ensure_binary
|
|
from ._version import __version__
|
|
|
|
__all__ = [
|
|
"launch",
|
|
"launch_async",
|
|
"launch_context",
|
|
"launch_persistent_context",
|
|
"launch_persistent_context_async",
|
|
"ensure_binary",
|
|
"clear_cache",
|
|
"binary_info",
|
|
"check_for_update",
|
|
"CHROMIUM_VERSION",
|
|
"get_default_stealth_args",
|
|
"ProxySettings",
|
|
"__version__",
|
|
]
|