Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Allow Indeed search term with complex syntax #139

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

lluissalord
Copy link
Contributor

When scraping using Indeed, simple syntax must be used. Otherwise, for example using search_term='"Python" AND "Java"' it logs the following message:
JobSpy - INFO - Indeed responded with status code: 400 (submit GitHub issue if this appears to be a beg)

The suggested fix, it escapes the quote in order to be able to be processed. I've compared the results between the scrape and the job platform result with the same syntax and, sorted by date, it returns the same results.

Besides, with this change now it also can be used any expression included in the Indeed syntax search guide

@cullenwatson cullenwatson merged commit dcd7144 into Bunsly:main Apr 30, 2024
@cullenwatson
Copy link
Member

good catch

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants