first commit
This commit is contained in:
commit
af518b7d7b
19 changed files with 2852 additions and 0 deletions
33
job.py
Normal file
33
job.py
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class Job:
|
||||
title: str
|
||||
company: str
|
||||
location: str
|
||||
link: str
|
||||
apply_method: str
|
||||
description: str = ""
|
||||
summarize_job_description: str = ""
|
||||
|
||||
def set_summarize_job_description(self, summarize_job_description):
|
||||
self.summarize_job_description = summarize_job_description
|
||||
|
||||
def set_job_description(self, description):
|
||||
self.description = description
|
||||
|
||||
def formatted_job_information(self):
|
||||
"""
|
||||
Formats the job information as a markdown string.
|
||||
"""
|
||||
job_information = f"""
|
||||
# Job Description
|
||||
## Job Information
|
||||
- Position: {self.title}
|
||||
- At: {self.company}
|
||||
- Location: {self.location}
|
||||
|
||||
## Description
|
||||
{self.description or 'No description provided.'}
|
||||
"""
|
||||
return job_information.strip()
|
||||
Loading…
Add table
Add a link
Reference in a new issue