Changed log for olx.

This commit is contained in:
Naida Vatric
2020-02-29 19:09:50 +01:00
parent 97c09a6da1
commit e1651306eb

View File

@@ -221,9 +221,7 @@ class OlxCrawler {
const body = await adPageSource.text();
const $ = cheerio.load(body);
let status = AD_STATUS.STATUS_NORMAL;
//
console.log("Body:", body);
//
const propertySelectors = {
username:
"#lg > div.desno2.profil > div:nth-child(2) > div.vrsta1.vrsta_desno > a > div.username > span",
@@ -282,6 +280,9 @@ class OlxCrawler {
status = AD_STATUS.STATUS_NORMAL;
}
} else {
//
console.log("Body:", body);
//
throw { message: "Can't find normal price" };
}
if (urgentPriceValue && urgentPriceValue.length > 0) {