First version with one issue of test suite

This commit is contained in:
blackms 2024-09-11 18:48:46 +02:00
parent aa5f1dfd5b
commit a4846a8c6f
2 changed files with 15 additions and 0 deletions

View file

@ -23,3 +23,4 @@ jsonschema-specifications==2023.12.1
httpx~=0.27.2
python-dotenv~=1.0.1
PyYAML~=6.0.2
pytest>=8.3.3

View file

@ -77,6 +77,20 @@ class LinkedInEasyApplier:
raise Exception(
f"Redirected to LinkedIn Premium page and failed to return after {max_attempts} attempts. Job application aborted.")
def apply_to_job(self, job: Any) -> None:
"""
Starts the process of applying to a job.
:param job: A job object with the job details.
:return: None
"""
logger.debug(f"Applying to job: {job}")
try:
self.job_apply(job)
logger.info(f"Successfully applied to job: {job.title}")
except Exception as e:
logger.error(f"Failed to apply to job: {job.title}, error: {str(e)}")
raise e
def job_apply(self, job: Any):
logger.debug("Starting job application for job: %s", job)