Changed log for olx.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user