mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-12 02:35:43 +00:00
Some checks failed
Unit Tests / unit-tests (push) Has been cancelled
* wip: add site mapping * chore: cleanup
15 lines
249 B
Python
15 lines
249 B
Python
from pydantic import BaseModel
|
|
from typing import Literal
|
|
|
|
|
|
class Action(BaseModel):
|
|
type: Literal["click", "input"]
|
|
xpath: str
|
|
name: str
|
|
input: str = ""
|
|
do_once: bool = True
|
|
|
|
|
|
class SiteMap(BaseModel):
|
|
actions: list[Action]
|