Skip to content

Commit

Permalink
fix: job types
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Feb 12, 2024
1 parent babbc09 commit 0541988
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/jobspy/scrapers/ziprecruiter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def add_params(scraper_input) -> dict[str, str | Any]:
if scraper_input.hours_old:
fromage = max(scraper_input.hours_old // 24, 1) if scraper_input.hours_old else None
params['days'] = fromage
job_type_value = None
job_type_map = {
JobType.FULL_TIME: 'full_time',
JobType.PART_TIME: 'part_time'
Expand All @@ -174,15 +173,8 @@ def add_params(scraper_input) -> dict[str, str | Any]:
params['employment_type'] = job_type_map[scraper_input.job_type] if scraper_input.job_type in job_type_map else scraper_input.job_type.value[0]
if scraper_input.easy_apply:
params['zipapply'] = 1

if job_type_value:
params[
"empl"
] = f"employment_type:employment_type:{job_type_value}"

if scraper_input.is_remote:
params["remote"] = 1

if scraper_input.distance:
params["radius"] = scraper_input.distance

Expand Down

0 comments on commit 0541988

Please sign in to comment.