forked from wodsuz/EasyApplyJobsBot
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmodels.py
More file actions
33 lines (26 loc) · 613 Bytes
/
models.py
File metadata and controls
33 lines (26 loc) · 613 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from dataclasses import asdict, dataclass
@dataclass
class Job:
title: str = ""
company: str = ""
location: str = ""
description: str = ""
workplace_type: str = ""
posted_date: str = ""
applicants_at_time_of_applying: str = ""
linkedin_job_id: str = ""
@dataclass
class JobForVerification:
linkedinJobId: str
title: str
company: str
workplaceType: str
def to_dict(self):
return asdict(self)
@dataclass
class JobCounter:
total = 0
applied = 0
skipped_blacklisted = 0
skipped_already_applied = 0
skipped_unanswered_questions = 0