added companyLogo and agoTime

This commit is contained in:
Vishwa Gaurav
2023-11-23 05:13:16 +05:30
parent c0a6c37dcd
commit 20c30f5828
3 changed files with 50 additions and 21 deletions

View File

@@ -176,11 +176,17 @@ function parseJobList(jobData) {
.replace(/\n/g, "")
.replaceAll(" ", "") || "";
const jobUrl = job.find(".base-card__full-link").attr("href") || "";
const companyLogo =
job.find(".artdeco-entity-image").attr("data-ghost-url") || "";
const agoTime =
job.find(".job-search-card__listdate").text().trim() || "";
return {
position: position,
company: company,
companyLogo: companyLogo,
location: location,
date: date,
agoTime: agoTime,
salary: salary,
jobUrl: jobUrl,
};