From a7fd644a56f5b4975875ba5a9322321bbed6603c Mon Sep 17 00:00:00 2001 From: Cullen Date: Mon, 22 Jan 2024 20:19:15 -0600 Subject: [PATCH] fix: generic --- src/jobspy/scrapers/glassdoor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobspy/scrapers/glassdoor/__init__.py b/src/jobspy/scrapers/glassdoor/__init__.py index 7afb521..49099b2 100644 --- a/src/jobspy/scrapers/glassdoor/__init__.py +++ b/src/jobspy/scrapers/glassdoor/__init__.py @@ -70,7 +70,7 @@ def fetch_jobs_page( jobs_data = res_json["data"]["jobListings"]["jobListings"] jobs = [] - with ThreadPoolExecutor(max_workers=30) as executor: + with ThreadPoolExecutor(max_workers=self.jobs_per_page) as executor: future_to_job_data = {executor.submit(self.process_job, job): job for job in jobs_data} for future in as_completed(future_to_job_data): job_data = future_to_job_data[future]