Changed redirecting for VIP ads.

This commit is contained in:
Naida Vatric
2020-01-10 22:52:50 +01:00
parent 1658325c4b
commit 64e4835899
4 changed files with 32 additions and 7 deletions

View File

@@ -184,14 +184,13 @@ class ProstorCrawler {
const { lat, lng, property_name, price, size, link, status } = realEstate;
//Status information is given already in realestate list
//For VIP Ads status ='' canot be used, but also area='0' we will use that temporary
//For VIP Ads status ='' canot be used, but no VIP ads are crawled
//We will make "fake" vip ad for RE that have size=55
//It is weird because yesterday it said 'VIP ponuda' ???
const adStatus =
size === "0"
size === "55"
? ProstorCrawler.getStatusId("VIP ponuda")
: ProstorCrawler.getStatusId(status);
//
console.log("adStatus", adStatus);
const url = `https://prostor.ba${link}`;