Skip to content

API Reference parrot_tools.hooba.web

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.hooba.web

View source

Playwright fallback for Hooba over a PRIVATE action catalog (FEAT-602 M7, U1).

Alias CredentialResolverFn

Re-exported from parrot_tools.scraping.session_actions.CredentialResolverFn.

Attribute DEFAULT_SECTIONS

Type: Dict[str, Tuple[str, str, str]]

Class HoobaWebAdapter

Thin wrapper over :class:WebBrowsingToolkit for the private Hooba catalog.

Parameter Type Default Description
catalog_dir Union[str, Path]
credential_resolver CredentialResolverFn
site str 'hooba'
login_action str 'hooba-login'
headless bool True
driver_type str 'playwright'
browser str 'chrome'
base_url str 'https://app.hooba.com'
**kwargs Any {}

Attributes:

Attribute Type Description
started bool True once the underlying toolkit exists (the browser may still be lazy).

Method HoobaWebAdapter.recover_session

Log in through the catalog and return requested context cookies.

Any login, driver, cookie capability, or cookie-shape failure is fail-closed and returns an empty mapping.

recover_session(cookie_names: Sequence[str] = ('sid',), *, api_url: str = 'https://api.hooba.com') -> Dict[str, str]

Parameter Type Default Description
cookie_names Sequence[str] ('sid',)
api_url str 'https://api.hooba.com'

Returns: Dict[str, str]

Method HoobaWebAdapter.run_navigation

Run a catalog action only when its kind is navigation.

run_navigation(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str, Any]

Parameter Type Default Description
action str
params Optional[Dict[str, Any]] None

Returns: Dict[str, Any]

Method HoobaWebAdapter.close

Close the browser if it was started.

close() -> None

Alias WebBrowsingToolkit

Re-exported from parrot_tools.browsing.WebBrowsingToolkit.

Attribute logger

Function seed_catalog

Write the private Hooba login and navigation actions to a catalog.

seed_catalog(catalog_dir: Union[str, Path], *, base_url: str = 'https://app.hooba.com', sections: Optional[Dict[str, Tuple[str, str, str]]] = None, username_selector: str = 'input[type="email"]', password_selector: str = 'input[type="password"]', submit_selector: str = 'button[type="submit"]') -> str

Parameter Type Default Description
catalog_dir Union[str, Path]
base_url str 'https://app.hooba.com'
sections Optional[Dict[str, Tuple[str, str, str]]] None
username_selector str 'input[type="email"]'
password_selector str 'input[type="password"]'
submit_selector str 'button[type="submit"]'

Returns: str — The registered site slug.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally