Add more real estate filters to crawler #72

Merged
bilal.catic merged 20 commits from add-more-real-estate-filters-to-crawler into master 2019-11-14 14:58:59 +01:00
Showing only changes of commit a7cd75653d - Show all commits

View File

@@ -547,6 +547,9 @@ class OlxCrawler {
case "bazen":
pool = true;
break;
case "iznajmljeno":
status = AD_STATUS.STATUS_RENTED;
break;
default:
// console.log(fieldTitle, " = ", fieldValue);
break;
@@ -573,6 +576,10 @@ class OlxCrawler {
locationLong = parseFloat(locationLatLngMatches[2]) || null;
}
if (title.indexOf("[PRODANO]") !== -1) {
status = AD_STATUS.STATUS_SOLD;
}
const data = {
url,
agencyObjectId: olxId,