fix:key error (#176)

monster v1.1.61
Cullen Watson 2024-07-21 13:05:18 -05:00 committed by GitHub
parent 8678b0bbe4
commit 8570c0651e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "python-jobspy" name = "python-jobspy"
version = "1.1.60" version = "1.1.61"
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter" description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"] authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
homepage = "https://github.com/Bunsly/JobSpy" homepage = "https://github.com/Bunsly/JobSpy"

View File

@ -189,7 +189,9 @@ def scrape_jobs(
job_data["salary_source"] = SalarySource.DESCRIPTION.value job_data["salary_source"] = SalarySource.DESCRIPTION.value
job_data["salary_source"] = ( job_data["salary_source"] = (
job_data["salary_source"] if job_data["min_amount"] else None job_data["salary_source"]
if "min_amount" in job_data and job_data["min_amount"]
else None
) )
job_df = pd.DataFrame([job_data]) job_df = pd.DataFrame([job_data])
jobs_dfs.append(job_df) jobs_dfs.append(job_df)