feat: implement Duunitori job posting parser and API endpoint

This commit is contained in:
Esa Kataja
2025-08-04 12:43:33 +03:00
parent ecdd5757d6
commit 24c6a8a4c3
5 changed files with 133 additions and 11 deletions
+10
View File
@@ -7,3 +7,13 @@ class NotImplementedException(HTTPException):
status_code=status.HTTP_501_NOT_IMPLEMENTED,
detail="Not implemented yet",
)
class FetchException(HTTPException):
def __init__(
self, url: str = "", status_code: int = status.HTTP_500_INTERNAL_SERVER_ERROR
):
super().__init__(
status_code=status_code,
detail=f"Failed to fetch job postings from {url} with status code {status_code}",
)