First version with one issue of test suite
This commit is contained in:
parent
aa5f1dfd5b
commit
a4846a8c6f
2 changed files with 15 additions and 0 deletions
|
|
@ -23,3 +23,4 @@ jsonschema-specifications==2023.12.1
|
||||||
httpx~=0.27.2
|
httpx~=0.27.2
|
||||||
python-dotenv~=1.0.1
|
python-dotenv~=1.0.1
|
||||||
PyYAML~=6.0.2
|
PyYAML~=6.0.2
|
||||||
|
pytest>=8.3.3
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,20 @@ class LinkedInEasyApplier:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
f"Redirected to LinkedIn Premium page and failed to return after {max_attempts} attempts. Job application aborted.")
|
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):
|
def job_apply(self, job: Any):
|
||||||
logger.debug("Starting job application for job: %s", job)
|
logger.debug("Starting job application for job: %s", job)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue