diff --git a/pyproject.toml b/pyproject.toml index 831eee7..0d0b44b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "python-jobspy" -version = "1.1.62" +version = "1.1.63" description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/JobSpy" diff --git a/src/jobspy/scrapers/utils.py b/src/jobspy/scrapers/utils.py index 56b8bac..5ebf2b6 100644 --- a/src/jobspy/scrapers/utils.py +++ b/src/jobspy/scrapers/utils.py @@ -198,6 +198,7 @@ def extract_salary( if not salary_str: return None, None, None, None + annual_max_salary = None min_max_pattern = r"\$(\d+(?:,\d+)?(?:\.\d+)?)([kK]?)\s*[-—–]\s*(?:\$)?(\d+(?:,\d+)?(?:\.\d+)?)([kK]?)" def to_int(s): @@ -238,6 +239,8 @@ def convert_monthly_to_annual(monthly_wage): annual_max_salary = max_salary # Ensure salary range is within specified limits + if not annual_max_salary: + return None, None, None, None if ( lower_limit <= annual_min_salary <= upper_limit and lower_limit <= annual_max_salary <= upper_limit