From fc6351af46f4a303bb33699d155697e05244c11a Mon Sep 17 00:00:00 2001 From: Naida Vatric Date: Fri, 7 Feb 2020 22:12:53 +0100 Subject: [PATCH] Added columns and logs for types. --- app/crawler/specificCrawlers/saljic.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/crawler/specificCrawlers/saljic.js b/app/crawler/specificCrawlers/saljic.js index 267dcde..b3a065c 100644 --- a/app/crawler/specificCrawlers/saljic.js +++ b/app/crawler/specificCrawlers/saljic.js @@ -315,6 +315,7 @@ class SaljicCrawler { includingBills = null, animalsAllowed = null, pool = null, + exchange = null, urbanPlanPermit = null, buildingPermit = null, utilityConnection = null, @@ -323,7 +324,7 @@ class SaljicCrawler { let renewedDate = null; let realEstateType; let numberOfViewsAgency = null; - + let numberOfViewsKivi = null; //Extracting data - Glavne karakteristike let mainFieldIndex = 1; do { @@ -537,12 +538,26 @@ class SaljicCrawler { includingBills, animalsAllowed, pool, + exchange, urbanPlanPermit, buildingPermit, utilityConnection, distanceToRiver, - numberOfViewsAgency + numberOfViewsAgency, + numberOfViewsKivi }; + // + console.log("Type of price:", typeof price); + console.log("Type of area:", typeof area); + console.log("Type of gardenSize:", typeof gardenSize); + console.log("Type of streetNumber:", typeof streetNumber); + console.log("Type of adStatus:", typeof adStatus); + console.log("Type of numberOfRooms:", typeof numberOfRooms); + console.log("Type of numberOfFloors:", typeof numberOfFloors); + console.log("Type of floor:", typeof floor); + console.log("Type of numberOfViewsAgency:", typeof numberOfViewsAgency); + console.log("Type of numberOfViewsKivi:", typeof numberOfViewsKivi); + return data; } catch (e) { console.error("Exception caught: " + e.message, "\r\nURL:", url);