mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 03:54:31 -08:00
FIX: Allow Indeed search term with complex syntax (#139)
This commit is contained in:
committed by
GitHub
parent
bf73c061bd
commit
dcd7144318
@@ -90,10 +90,11 @@ class IndeedScraper(Scraper):
|
||||
jobs = []
|
||||
new_cursor = None
|
||||
filters = self._build_filters()
|
||||
search_term = self.scraper_input.search_term.replace('"', '\\"') if self.scraper_input.search_term else ""
|
||||
query = self.job_search_query.format(
|
||||
what=(
|
||||
f'what: "{self.scraper_input.search_term}"'
|
||||
if self.scraper_input.search_term
|
||||
f'what: "{search_term}"'
|
||||
if search_term
|
||||
else ""
|
||||
),
|
||||
location=(
|
||||
|
||||
Reference in New Issue
Block a user