From 159fedbc2d9d76d7619e46b2f8f2b96e59576774 Mon Sep 17 00:00:00 2001 From: Bilal Date: Mon, 18 May 2020 03:53:08 +0200 Subject: [PATCH] handle failed page fetch --- app/crawler/specificCrawlers/aktido.js | 4 ++++ app/crawler/specificCrawlers/prostor.js | 4 ++++ app/crawler/specificCrawlers/rental.js | 4 ++++ app/crawler/specificCrawlers/saljic.js | 6 +++++- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/crawler/specificCrawlers/aktido.js b/app/crawler/specificCrawlers/aktido.js index 9755eb7..ac4dcc6 100644 --- a/app/crawler/specificCrawlers/aktido.js +++ b/app/crawler/specificCrawlers/aktido.js @@ -202,6 +202,10 @@ class AktidoCrawler { const body = await adPageSource.text(); const $ = cheerio.load(body); + if (body.indexOf('