mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-04 19:44:30 -08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80213f28d2 | ||
|
|
ada38532c3 |
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "python-jobspy"
|
name = "python-jobspy"
|
||||||
version = "1.1.49"
|
version = "1.1.50"
|
||||||
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"
|
||||||
|
|||||||
@@ -90,18 +90,17 @@ class IndeedScraper(Scraper):
|
|||||||
jobs = []
|
jobs = []
|
||||||
new_cursor = None
|
new_cursor = None
|
||||||
filters = self._build_filters()
|
filters = self._build_filters()
|
||||||
location = (
|
|
||||||
self.scraper_input.location
|
|
||||||
or self.scraper_input.country.value[0].split(",")[-1]
|
|
||||||
)
|
|
||||||
query = self.job_search_query.format(
|
query = self.job_search_query.format(
|
||||||
what=(
|
what=(
|
||||||
f'what: "{self.scraper_input.search_term}"'
|
f'what: "{self.scraper_input.search_term}"'
|
||||||
if self.scraper_input.search_term
|
if self.scraper_input.search_term
|
||||||
else ""
|
else ""
|
||||||
),
|
),
|
||||||
location=location,
|
location=(
|
||||||
radius=self.scraper_input.distance,
|
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,
|
dateOnIndeed=self.scraper_input.hours_old,
|
||||||
cursor=f'cursor: "{cursor}"' if cursor else "",
|
cursor=f'cursor: "{cursor}"' if cursor else "",
|
||||||
filters=filters,
|
filters=filters,
|
||||||
@@ -343,7 +342,7 @@ class IndeedScraper(Scraper):
|
|||||||
query GetJobData {{
|
query GetJobData {{
|
||||||
jobSearch(
|
jobSearch(
|
||||||
{what}
|
{what}
|
||||||
location: {{ where: "{location}", radius: {radius}, radiusUnit: MILES }}
|
{location}
|
||||||
includeSponsoredResults: NONE
|
includeSponsoredResults: NONE
|
||||||
limit: 100
|
limit: 100
|
||||||
sort: DATE
|
sort: DATE
|
||||||
|
|||||||
Reference in New Issue
Block a user