narada 0.1.30__py3-none-any.whl → 0.1.31__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.
narada/window.py
CHANGED
|
@@ -26,6 +26,12 @@ from narada_core.actions.models import (
|
|
|
26
26
|
ReadGoogleSheetResponse,
|
|
27
27
|
WriteGoogleSheetRequest,
|
|
28
28
|
RecordedClick,
|
|
29
|
+
GetFullHtmlRequest,
|
|
30
|
+
GetFullHtmlResponse,
|
|
31
|
+
GetSimplifiedHtmlRequest,
|
|
32
|
+
GetSimplifiedHtmlResponse,
|
|
33
|
+
GetScreenshotRequest,
|
|
34
|
+
GetScreenshotResponse,
|
|
29
35
|
)
|
|
30
36
|
from narada_core.errors import (
|
|
31
37
|
NaradaAgentTimeoutError_INTERNAL_DO_NOT_USE,
|
|
@@ -437,6 +443,34 @@ class BaseBrowserWindow(ABC):
|
|
|
437
443
|
timeout=timeout,
|
|
438
444
|
)
|
|
439
445
|
|
|
446
|
+
async def get_full_html(self, *, timeout: int | None = None) -> GetFullHtmlResponse:
|
|
447
|
+
"""Gets the full HTML content of the current page."""
|
|
448
|
+
return await self._run_extension_action(
|
|
449
|
+
GetFullHtmlRequest(),
|
|
450
|
+
GetFullHtmlResponse,
|
|
451
|
+
timeout=timeout,
|
|
452
|
+
)
|
|
453
|
+
|
|
454
|
+
async def get_simplified_html(
|
|
455
|
+
self, *, timeout: int | None = None
|
|
456
|
+
) -> GetSimplifiedHtmlResponse:
|
|
457
|
+
"""Gets the simplified HTML content of the current page."""
|
|
458
|
+
return await self._run_extension_action(
|
|
459
|
+
GetSimplifiedHtmlRequest(),
|
|
460
|
+
GetSimplifiedHtmlResponse,
|
|
461
|
+
timeout=timeout,
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
async def get_screenshot(
|
|
465
|
+
self, *, timeout: int | None = None
|
|
466
|
+
) -> GetScreenshotResponse:
|
|
467
|
+
"""Takes a screenshot of the current browser window."""
|
|
468
|
+
return await self._run_extension_action(
|
|
469
|
+
GetScreenshotRequest(),
|
|
470
|
+
GetScreenshotResponse,
|
|
471
|
+
timeout=timeout,
|
|
472
|
+
)
|
|
473
|
+
|
|
440
474
|
@overload
|
|
441
475
|
async def _run_extension_action(
|
|
442
476
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: narada
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.31
|
|
4
4
|
Summary: Python client SDK for Narada
|
|
5
5
|
Project-URL: Homepage, https://github.com/NaradaAI/narada-python-sdk/narada
|
|
6
6
|
Project-URL: Repository, https://github.com/NaradaAI/narada-python-sdk
|
|
@@ -9,7 +9,7 @@ Author-email: Narada <support@narada.ai>
|
|
|
9
9
|
License-Expression: Apache-2.0
|
|
10
10
|
Requires-Python: >=3.12
|
|
11
11
|
Requires-Dist: aiohttp>=3.12.13
|
|
12
|
-
Requires-Dist: narada-core==0.0.
|
|
12
|
+
Requires-Dist: narada-core==0.0.9
|
|
13
13
|
Requires-Dist: playwright>=1.53.0
|
|
14
14
|
Requires-Dist: rich>=14.0.0
|
|
15
15
|
Requires-Dist: semver>=3.0.4
|
|
@@ -4,7 +4,7 @@ narada/config.py,sha256=S0B8GNd-0td_69oKaPN60WAq_ODeYU7avE_KAxN5vCg,3052
|
|
|
4
4
|
narada/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
narada/utils.py,sha256=gdLwNMXPpRohDcIIe0cB3KhvZ8X1QfAlKVh1sXWeJmk,1284
|
|
6
6
|
narada/version.py,sha256=kwW6yy0_4Pf3kt888eeCG0VwBb2L2rCkrkpdZEC_3rA,193
|
|
7
|
-
narada/window.py,sha256=
|
|
8
|
-
narada-0.1.
|
|
9
|
-
narada-0.1.
|
|
10
|
-
narada-0.1.
|
|
7
|
+
narada/window.py,sha256=_RyS_oIHJrFJ5ksEvde7NNiGfklVm9uSQoKFFEbUcYw,20648
|
|
8
|
+
narada-0.1.31.dist-info/METADATA,sha256=QJT-6CEwxUA5FMbkBlP9JtzfWtCBJWZD8VQvY3d_xeU,5146
|
|
9
|
+
narada-0.1.31.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
10
|
+
narada-0.1.31.dist-info/RECORD,,
|
|
File without changes
|