feat: url текущей страницы в ответе задачи (#116)

SPA меняет адрес без навигации (страница созданной заявки и т.п.): ответ v1/v2 отдаёт page.url
после действий, клиент 0.2.1 - Result.url. Документация и unit-тесты.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
protokeyandClaude Opus 5.5 committed 2026-10-24 22:02:08 +04:00
1 parent 95b5057d9f
commit f21483489a
9 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "robotex"
version = "0.2.0"
version = "0.2.1"
description = "Python-клиент Robotex API: браузер с обходом антиботов, задачи v2 и окна сессий"
readme = "README.md"
requires-python = ">=3.10"
+1 -1
View File
@@ -21,7 +21,7 @@ from robotex.errors import (
)
from robotex.models import ActionResult, Result, Task
__version__ = "0.2.0"
__version__ = "0.2.1"
__all__ = [
"Action", "ActionResult", "AsyncRobotex", "AsyncSession", "AsyncTaskRef", "AuthError", "InvalidRequest",
+2
View File
@@ -24,6 +24,7 @@ class Result:
code: str | None = None
error: str | None = None
user_agent: str | None = None
url: str | None = None
cookies: list[dict[str, Any]] = field(default_factory=list)
actions: list[ActionResult] = field(default_factory=list)
html: str | None = None
@@ -59,6 +60,7 @@ class Result:
code=data.get("code"),
error=data.get("error"),
user_agent=data.get("user_agent"),
url=data.get("url"),
cookies=data.get("cookies") or [],
actions=[ActionResult.from_dict(a) for a in data.get("actions") or []],
html=data.get("html"),