From e1651306ebcbaad54d72e2a9ccb381de34e7de63 Mon Sep 17 00:00:00 2001 From: Naida Vatric Date: Sat, 29 Feb 2020 19:09:50 +0100 Subject: [PATCH] Changed log for olx. --- app/crawler/specificCrawlers/olx.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/crawler/specificCrawlers/olx.js b/app/crawler/specificCrawlers/olx.js index 89ae632..f2964a3 100644 --- a/app/crawler/specificCrawlers/olx.js +++ b/app/crawler/specificCrawlers/olx.js @@ -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) {