Initial Commit

This commit is contained in:
unclecode
2024-05-09 19:10:25 +08:00
commit b8e743cd8d
19 changed files with 2296 additions and 0 deletions

15
crawler/models.py Normal file
View File

@@ -0,0 +1,15 @@
from pydantic import BaseModel, HttpUrl
from typing import List
class UrlModel(BaseModel):
url: HttpUrl
forced: bool = False
class CrawlResult(BaseModel):
url: str
html: str
success: bool
cleaned_html: str = None
markdown: str = None
parsed_json: str = None
error_message: str = None