mirror of https://github.com/Bunsly/JobSpy
refactor(jobs): use JobResponse model for bad requests
parent
a0957f1d5b
commit
bdc7ce1df2
|
@ -26,7 +26,7 @@ class LinkedInScraper(Scraper):
|
|||
|
||||
self.url = f"{self.url}/{scraper_input.search_term}-jobs"
|
||||
response = requests.get(self.url, params=params)
|
||||
response.status_code = 300
|
||||
|
||||
if response.status_code != status.HTTP_200_OK:
|
||||
return JobResponse(
|
||||
success=False,
|
||||
|
|
Loading…
Reference in New Issue