Skip to content

API Reference parrot.handlers.scraping.info

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

parrot.handlers.scraping.info

View source

ScrapingInfoHandler — GET-only reference metadata endpoints for the Scraping UI.

Serves browser action catalog, driver types, driver configuration schema, and crawl strategy definitions. Designed to be consumed by the ScrapingToolkit Svelte component in navigator-frontend-next for dynamic form rendering.

Alias ACTION_MAP

Re-exported from parrot.tools.scraping.models.ACTION_MAP.

Alias DriverConfig

Re-exported from parrot.tools.scraping.toolkit_models.DriverConfig.

Class ScrapingInfoHandler

Method-based handler serving reference data for the Scraping UI.

All endpoints are GET-only and return static/introspected metadata about browser actions, driver types, driver configuration, and crawl strategies.

Parameter Type Default Description
*args ()
**kwargs {}

Method ScrapingInfoHandler.get_actions

GET /api/v1/scraping/info/actions — list all BrowserAction types.

Returns a JSON array of action types with name, description, field schemas (JSON Schema), and required fields.

get_actions(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Method ScrapingInfoHandler.get_drivers

GET /api/v1/scraping/info/drivers — list driver types and browsers.

Returns available driver types (selenium, playwright) with their supported browser names.

get_drivers(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Method ScrapingInfoHandler.get_config_schema

GET /api/v1/scraping/info/config — DriverConfig JSON schema.

Returns the full JSON Schema for DriverConfig, enabling the UI to dynamically render configuration forms.

get_config_schema(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Method ScrapingInfoHandler.get_strategies

GET /api/v1/scraping/info/strategies — crawl strategy definitions.

Returns available crawl strategies (bfs, dfs) with descriptions.

get_strategies(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Method ScrapingInfoHandler.setup

Register all info GET routes on the aiohttp application.

setup(app: web.Application) -> None

Parameter Type Default Description
app web.Application

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