Compare commits

...

2 Commits

Author SHA1 Message Date
Cullen Watson
80213f28d2 chore: version 2024-03-11 09:43:12 -05:00
Cullen Watson
ada38532c3 fix: indeed empty location term 2024-03-11 09:42:43 -05:00
2 changed files with 7 additions and 8 deletions

View File

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

View File

@@ -90,18 +90,17 @@ class IndeedScraper(Scraper):
jobs = []
new_cursor = None
filters = self._build_filters()
location = (
self.scraper_input.location
or self.scraper_input.country.value[0].split(",")[-1]
)
query = self.job_search_query.format(
what=(
f'what: "{self.scraper_input.search_term}"'
if self.scraper_input.search_term
else ""
),
location=location,
radius=self.scraper_input.distance,
location=(
f'location: {{where: "{self.scraper_input.location}", radius: {self.scraper_input.distance}, radiusUnit: MILES}}'
if self.scraper_input.location
else ""
),
dateOnIndeed=self.scraper_input.hours_old,
cursor=f'cursor: "{cursor}"' if cursor else "",
filters=filters,
@@ -343,7 +342,7 @@ class IndeedScraper(Scraper):
query GetJobData {{
jobSearch(
{what}
location: {{ where: "{location}", radius: {radius}, radiusUnit: MILES }}
{location}
includeSponsoredResults: NONE
limit: 100
sort: DATE