Added columns and logs for types.

This commit is contained in:
Naida Vatric
2020-02-07 22:12:53 +01:00
parent 6267b2cab4
commit fc6351af46

View File

@@ -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);