mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-13 03:06:23 +00:00
Feat: Site Mapping (#46)
Some checks failed
Unit Tests / unit-tests (push) Has been cancelled
Some checks failed
Unit Tests / unit-tests (push) Has been cancelled
* wip: add site mapping * chore: cleanup
This commit is contained in:
14
api/backend/job/models/site_map.py
Normal file
14
api/backend/job/models/site_map.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user