remove crawler and saver logging
This commit is contained in:
@@ -10,8 +10,6 @@ class PostgresSaver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async save(results) {
|
async save(results) {
|
||||||
console.log("[POSTGRES] Saving...");
|
|
||||||
|
|
||||||
const savedRecords = await bulkUpsertRealEstates(results);
|
const savedRecords = await bulkUpsertRealEstates(results);
|
||||||
|
|
||||||
if (Array.isArray(savedRecords)) {
|
if (Array.isArray(savedRecords)) {
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ class OlxCrawler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async crawl() {
|
async crawl() {
|
||||||
console.log("[OLX] Crawler started");
|
|
||||||
const crawlAdCategories = this.crawlerAdCategories;
|
const crawlAdCategories = this.crawlerAdCategories;
|
||||||
|
|
||||||
const newRealEstates = [];
|
const newRealEstates = [];
|
||||||
@@ -123,7 +122,6 @@ class OlxCrawler {
|
|||||||
await this.sleep(this.delayBetweenPages);
|
await this.sleep(this.delayBetweenPages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("[OLX] Crawler finished");
|
|
||||||
return newRealEstates;
|
return newRealEstates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user