mirror of https://github.com/Bunsly/JobSpy
FIX: Allow Indeed search term with complex syntax (#139)
parent
bf73c061bd
commit
dcd7144318
|
@ -90,10 +90,11 @@ class IndeedScraper(Scraper):
|
||||||
jobs = []
|
jobs = []
|
||||||
new_cursor = None
|
new_cursor = None
|
||||||
filters = self._build_filters()
|
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(
|
query = self.job_search_query.format(
|
||||||
what=(
|
what=(
|
||||||
f'what: "{self.scraper_input.search_term}"'
|
f'what: "{search_term}"'
|
||||||
if self.scraper_input.search_term
|
if search_term
|
||||||
else ""
|
else ""
|
||||||
),
|
),
|
||||||
location=(
|
location=(
|
||||||
|
|
Loading…
Reference in New Issue