xbrowser 0.5.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
xbrowser/__init__.py ADDED
@@ -0,0 +1,55 @@
1
+ """xbrowser — Stealth Chromium that passes every bot detection test.
2
+
3
+ Drop-in Playwright replacement with source-level fingerprint patches.
4
+
5
+ Usage:
6
+ from xbrowser import launch
7
+
8
+ browser = launch()
9
+ page = browser.new_page()
10
+ page.goto("https://protected-site.com")
11
+ browser.close()
12
+ """
13
+
14
+ from .browser import launch, launch_async, launch_context, launch_context_async, launch_persistent_context, launch_persistent_context_async, ProxySettings, build_args, maybe_resolve_geoip
15
+ from .config import CHROMIUM_VERSION, get_default_stealth_args
16
+ from .download import binary_info, check_for_update, clear_cache, ensure_binary
17
+ from .license import XBrowserLicenseError, LicenseInfo, validate_license
18
+ from ._version import __version__
19
+
20
+ # Human-like behavioral layer (optional)
21
+ def __getattr__(name):
22
+ if name == "HumanConfig":
23
+ from .human.config import HumanConfig
24
+ globals()["HumanConfig"] = HumanConfig
25
+ return HumanConfig
26
+ if name == "resolve_human_config":
27
+ from .human.config import resolve_config
28
+ globals()["resolve_human_config"] = resolve_config
29
+ return resolve_config
30
+ raise AttributeError(f"module 'xbrowser' has no attribute {name}")
31
+
32
+ __all__ = [
33
+ "launch",
34
+ "launch_async",
35
+ "launch_context",
36
+ "launch_context_async",
37
+ "launch_persistent_context",
38
+ "launch_persistent_context_async",
39
+ "ensure_binary",
40
+ "clear_cache",
41
+ "binary_info",
42
+ "check_for_update",
43
+ "CHROMIUM_VERSION",
44
+ "get_default_stealth_args",
45
+ "build_args",
46
+ "maybe_resolve_geoip",
47
+ "ProxySettings",
48
+ "validate_license",
49
+ "LicenseInfo",
50
+ "XBrowserLicenseError",
51
+ "HumanConfig",
52
+ "resolve_human_config",
53
+ "__version__",
54
+ ]
55
+