mirror of https://github.com/Bunsly/JobSpy
parent
53bc33a43a
commit
a7ad616567
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "python-jobspy"
|
name = "python-jobspy"
|
||||||
version = "1.1.32"
|
version = "1.1.33"
|
||||||
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
|
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
|
||||||
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
||||||
homepage = "https://github.com/Bunsly/JobSpy"
|
homepage = "https://github.com/Bunsly/JobSpy"
|
||||||
|
|
|
@ -92,8 +92,11 @@ class LinkedInScraper(Scraper):
|
||||||
raise LinkedInException(str(e))
|
raise LinkedInException(str(e))
|
||||||
|
|
||||||
soup = BeautifulSoup(response.text, "html.parser")
|
soup = BeautifulSoup(response.text, "html.parser")
|
||||||
|
job_cards = soup.find_all("div", class_="base-search-card")
|
||||||
|
if len(job_cards) == 0:
|
||||||
|
return JobResponse(jobs=job_list)
|
||||||
|
|
||||||
for job_card in soup.find_all("div", class_="base-search-card"):
|
for job_card in job_cards:
|
||||||
job_url = None
|
job_url = None
|
||||||
href_tag = job_card.find("a", class_="base-card__full-link")
|
href_tag = job_card.find("a", class_="base-card__full-link")
|
||||||
if href_tag and "href" in href_tag.attrs:
|
if href_tag and "href" in href_tag.attrs:
|
||||||
|
|
Loading…
Reference in New Issue