linkedIn_auto_jobs_applier_.../job.py

35 lines
907 B
Python
Raw Normal View History

2024-08-04 12:14:56 +00:00
from dataclasses import dataclass
@dataclass
class Job:
title: str
company: str
location: str
link: str
apply_method: str
description: str = ""
summarize_job_description: str = ""
2024-08-22 09:42:49 +00:00
pdf_path: str = ""
2024-08-04 12:14:56 +00:00
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()