Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Jul 16, 2024
1 parent 48631ea commit 6330c14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/jobspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ def convert_to_annual(job_data: dict):
"is_remote",
"job_level",
"job_function",
"company_industry",
"listing_type",
"emails",
"description",
"company_url",
"company_url_direct",
"company_addresses",
"company_industry",
"company_num_employees",
"company_revenue",
"company_description",
Expand Down
1 change: 1 addition & 0 deletions src/jobspy/scrapers/indeed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def _process_job(self, job: dict) -> JobPost | None:
.replace("Iv1", "")
.replace("_", " ")
.title()
.strip()
if employer_details.get("industry")
else None
),
Expand Down
6 changes: 3 additions & 3 deletions src/jobspy/scrapers/linkedin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _process_job(
job_url=f"{self.base_url}/jobs/view/{job_id}",
compensation=compensation,
job_type=job_details.get("job_type"),
job_level=job_details.get("job_level"),
job_level=job_details.get("job_level", "").lower(),
company_industry=job_details.get("company_industry"),
description=job_details.get("description"),
job_url_direct=job_details.get("job_url_direct"),
Expand Down Expand Up @@ -351,7 +351,7 @@ def _parse_job_level(soup_job_level: BeautifulSoup) -> str | None:
job_level = job_level_span.get_text(strip=True)

return job_level

@staticmethod
def _parse_company_industry(soup_industry: BeautifulSoup) -> str | None:
"""
Expand All @@ -373,7 +373,7 @@ def _parse_company_industry(soup_industry: BeautifulSoup) -> str | None:
if industry_span:
industry = industry_span.get_text(strip=True)

return industry
return industry

def _parse_job_url_direct(self, soup: BeautifulSoup) -> str | None:
"""
Expand Down

0 comments on commit 6330c14

Please sign in to comment.