From 3e934547388675cd625ff856c256265539d34b1d Mon Sep 17 00:00:00 2001 From: Cullen Date: Mon, 11 Mar 2024 21:23:20 -0500 Subject: [PATCH] fix(indeed): readd param --- README.md | 2 +- pyproject.toml | 2 +- src/jobspy/__init__.py | 2 +- src/jobspy/scrapers/indeed/__init__.py | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eb5e449..844cfc5 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Optional ├── proxy (str): in format 'http://user:pass@host:port' ├── is_remote (bool) ├── results_wanted (int): number of job results to retrieve for each site specified in 'site_type' -├── easy_apply (bool): filters for jobs that are hosted on the job board site (not supported on Indeed) +├── easy_apply (bool): filters for jobs that are hosted on the job board site (LinkedIn & Indeed do not allow pairing this with hours_old) ├── linkedin_fetch_description (bool): fetches full description for LinkedIn (slower) ├── linkedin_company_ids (list[int): searches for linkedin jobs with specific company ids ├── description_format (str): markdown, html (format type of the job descriptions) diff --git a/pyproject.toml b/pyproject.toml index 864b1ec..03b3e4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "python-jobspy" -version = "1.1.50" +version = "1.1.51" description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/JobSpy" diff --git a/src/jobspy/__init__.py b/src/jobspy/__init__.py index 0f7fbb2..a87238e 100644 --- a/src/jobspy/__init__.py +++ b/src/jobspy/__init__.py @@ -41,7 +41,7 @@ def scrape_jobs( ) -> pd.DataFrame: """ Simultaneously scrapes job data from multiple job sites. - :return: results_wanted: pandas dataframe containing job data + :return: pandas dataframe containing job data """ SCRAPER_MAPPING = { Site.LINKEDIN: LinkedInScraper, diff --git a/src/jobspy/scrapers/indeed/__init__.py b/src/jobspy/scrapers/indeed/__init__.py index 1156f0a..a7b4f44 100644 --- a/src/jobspy/scrapers/indeed/__init__.py +++ b/src/jobspy/scrapers/indeed/__init__.py @@ -150,6 +150,15 @@ class IndeedScraper(Scraper): """.format( start=self.scraper_input.hours_old ) + elif self.scraper_input.easy_apply: + filters_str = """ + filters: { + keyword: { + field: "indeedApplyScope", + keys: ["DESKTOP"] + } + } + """ elif self.scraper_input.job_type or self.scraper_input.is_remote: job_type_key_mapping = { JobType.FULL_TIME: "CF3CP",