Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ceki_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ async def rent(
human="natural",
masking_mode: bool = True,
fingerprint: bool | dict | None = True,
pacing_profile: str | None = None,
) -> Browser:
if mode not in ("incognito", "main"):
raise ValueError(f"mode must be 'incognito' or 'main', got {mode!r}")
Expand All @@ -185,6 +186,8 @@ async def rent(
msg: dict = {"type": "rent", "browser_id": schedule_id}
if mode != "incognito":
msg["mode"] = mode
if pacing_profile is not None:
msg["pacing_profile"] = pacing_profile
await self._ws_send(msg)
try:
match = await asyncio.wait_for(fut, timeout=90)
Expand Down