Another fix. Defined more var.
This commit is contained in:
@@ -283,8 +283,8 @@ class SaljicCrawler {
|
|||||||
const locationLong = parseFloat(longText) || null;
|
const locationLong = parseFloat(longText) || null;
|
||||||
|
|
||||||
//====== DETAIL INFORMATION FIELDS ==========
|
//====== DETAIL INFORMATION FIELDS ==========
|
||||||
let area,
|
let area = null,
|
||||||
gardenSize,
|
gardenSize = null,
|
||||||
numberOfRooms = null,
|
numberOfRooms = null,
|
||||||
numberOfFloors = null,
|
numberOfFloors = null,
|
||||||
floor = null,
|
floor = null,
|
||||||
@@ -325,6 +325,8 @@ class SaljicCrawler {
|
|||||||
let realEstateType;
|
let realEstateType;
|
||||||
let numberOfViewsAgency = null;
|
let numberOfViewsAgency = null;
|
||||||
let numberOfViewsKivi = null;
|
let numberOfViewsKivi = null;
|
||||||
|
let streetNumber = 0;
|
||||||
|
let adStatus = status;
|
||||||
//Extracting data - Glavne karakteristike
|
//Extracting data - Glavne karakteristike
|
||||||
let mainFieldIndex = 1;
|
let mainFieldIndex = 1;
|
||||||
do {
|
do {
|
||||||
@@ -495,7 +497,7 @@ class SaljicCrawler {
|
|||||||
gardenSize,
|
gardenSize,
|
||||||
shortDescription: descriptions.substring(0, descriptions.indexOf(".")),
|
shortDescription: descriptions.substring(0, descriptions.indexOf(".")),
|
||||||
longDescription: descriptions,
|
longDescription: descriptions,
|
||||||
streetNumber: 0,
|
streetNumber,
|
||||||
streetName,
|
streetName,
|
||||||
locality: "",
|
locality: "",
|
||||||
municipality: "",
|
municipality: "",
|
||||||
@@ -505,7 +507,7 @@ class SaljicCrawler {
|
|||||||
country: "",
|
country: "",
|
||||||
locationLat,
|
locationLat,
|
||||||
locationLong,
|
locationLong,
|
||||||
adStatus: status,
|
adStatus,
|
||||||
publishedDate,
|
publishedDate,
|
||||||
renewedDate,
|
renewedDate,
|
||||||
numberOfRooms,
|
numberOfRooms,
|
||||||
|
|||||||
Reference in New Issue
Block a user