improve OLX ad status detection
This commit is contained in:
@@ -547,6 +547,9 @@ class OlxCrawler {
|
|||||||
case "bazen":
|
case "bazen":
|
||||||
pool = true;
|
pool = true;
|
||||||
break;
|
break;
|
||||||
|
case "iznajmljeno":
|
||||||
|
status = AD_STATUS.STATUS_RENTED;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// console.log(fieldTitle, " = ", fieldValue);
|
// console.log(fieldTitle, " = ", fieldValue);
|
||||||
break;
|
break;
|
||||||
@@ -573,6 +576,10 @@ class OlxCrawler {
|
|||||||
locationLong = parseFloat(locationLatLngMatches[2]) || null;
|
locationLong = parseFloat(locationLatLngMatches[2]) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (title.indexOf("[PRODANO]") !== -1) {
|
||||||
|
status = AD_STATUS.STATUS_SOLD;
|
||||||
|
}
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
url,
|
url,
|
||||||
agencyObjectId: olxId,
|
agencyObjectId: olxId,
|
||||||
|
|||||||
Reference in New Issue
Block a user