From bc5adbf30585cb551b9b4469de56b55c517d5d2c Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Wed, 12 Dec 2018 11:37:25 +0000 Subject: [PATCH] Parse salary for each job --- lib/scraper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/scraper.js b/lib/scraper.js index 9f23254..29aa650 100644 --- a/lib/scraper.js +++ b/lib/scraper.js @@ -98,13 +98,16 @@ function parseJobList(body){ const postDate = job.find('.date').text().trim(); + const salary = job.find('.salary.no-wrap').text().trim(); + return { title: jobtitle, summary: summary, url: url, company: company, location: location, - postDate: postDate + postDate: postDate, + salary: salary }; }).get();