mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 12:04:33 -08:00
- init
This commit is contained in:
0
api/core/__init__.py
Normal file
0
api/core/__init__.py
Normal file
55
api/core/jobs/__init__.py
Normal file
55
api/core/jobs/__init__.py
Normal file
@@ -0,0 +1,55 @@
|
||||
from pydantic import BaseModel
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class JobType(Enum):
|
||||
FULL_TIME = 'full_time'
|
||||
PART_TIME = 'part_time'
|
||||
CONTRACT = 'contract'
|
||||
INTERNSHIP = 'internship'
|
||||
|
||||
|
||||
class CompensationInterval(Enum):
|
||||
ANNUAL = 'annual'
|
||||
MONTHLY = 'monthly'
|
||||
WEEKLY = 'weekly'
|
||||
DAILY = 'daily'
|
||||
HOURLY = 'hourly'
|
||||
|
||||
|
||||
class Location(BaseModel):
|
||||
country: str
|
||||
city: str
|
||||
state: str
|
||||
postal_code: str = None
|
||||
address: str = None
|
||||
|
||||
|
||||
class Compensation(BaseModel):
|
||||
interval: CompensationInterval
|
||||
min_amount: int
|
||||
max_amount: int
|
||||
currency: str
|
||||
|
||||
|
||||
class DeliveryEnum(Enum):
|
||||
EMAIL = 'email'
|
||||
URL = 'url'
|
||||
|
||||
|
||||
class Delivery(BaseModel):
|
||||
method: DeliveryEnum
|
||||
value: str
|
||||
|
||||
|
||||
class JobPost(BaseModel):
|
||||
title: str
|
||||
description: str
|
||||
company_name: str
|
||||
industry: str
|
||||
location: Location
|
||||
job_type: JobType
|
||||
compensation: Compensation
|
||||
date_posted: datetime
|
||||
delivery: Delivery = None
|
||||
0
api/core/scrapers/__init__.py
Normal file
0
api/core/scrapers/__init__.py
Normal file
Reference in New Issue
Block a user