Component evidence

WebScraperSubmitConfig (impl/web_scraper.py)

model-compose · src/mindor/dsl/schema/action/impl/web_scraper.py · python · MIT
scraping

Defines configuration for web scraping actions including URL targets, selectors, and extraction modes.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/hanyeol/model-compose | License: MIT | Copyright 2025 Hanyeol Cho
# Provided via justclaw.it.com; keep this notice with the code.
from typing import Type, Union, Literal, Optional, Dict, List, Tuple, Set, Annotated, Any
from pydantic import BaseModel, Field
from pydantic import model_validator
from .common import CommonActionConfig

class WebScraperSubmitConfig(BaseModel):
    selector: Optional[str] = Field(default=None, description="CSS selector locating the form or submit button. Mutually exclusive with `xpath`.")
    xpath: Optional[str] = Field(default=None, description="XPath locating the form or submit button. Mutually exclusive with `selector`.")
    form: Optional[Dict[str, Any]] = Field(default=None, description="Form field values to fill; keys are in

... (truncated -- full source via MCP)