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, includingBills = null,
animalsAllowed = null, animalsAllowed = null,
pool = null, pool = null,
exchange = null,
urbanPlanPermit = null, urbanPlanPermit = null,
buildingPermit = null, buildingPermit = null,
utilityConnection = null, utilityConnection = null,
@@ -323,7 +324,7 @@ class SaljicCrawler {
let renewedDate = null; let renewedDate = null;
let realEstateType; let realEstateType;
let numberOfViewsAgency = null; let numberOfViewsAgency = null;
let numberOfViewsKivi = null;
//Extracting data - Glavne karakteristike //Extracting data - Glavne karakteristike
let mainFieldIndex = 1; let mainFieldIndex = 1;
do { do {
@@ -537,12 +538,26 @@ class SaljicCrawler {
includingBills, includingBills,
animalsAllowed, animalsAllowed,
pool, pool,
exchange,
urbanPlanPermit, urbanPlanPermit,
buildingPermit, buildingPermit,
utilityConnection, utilityConnection,
distanceToRiver, 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; return data;
} catch (e) { } catch (e) {
console.error("Exception caught: " + e.message, "\r\nURL:", url); console.error("Exception caught: " + e.message, "\r\nURL:", url);