wip: create webapp

This commit is contained in:
Jayden Pyles
2024-07-06 11:56:05 -05:00
parent dd1923d9f1
commit d66a1fbacf
13 changed files with 1981 additions and 246 deletions

19
api/backend/models.py Normal file
View File

@@ -0,0 +1,19 @@
# PDM
import pydantic
class Element(pydantic.BaseModel):
name: str
url: str
xpath: str
class CapturedElement(pydantic.BaseModel):
xpath: str
text: str
name: str
class SubmitScrapeJob(pydantic.BaseModel):
url: str
elements: list[Element]