implement crawler for Prostor agency
This commit is contained in:
@@ -7,8 +7,13 @@
|
||||
*/
|
||||
const OlxCrawler = require("./specificCrawlers/olx");
|
||||
const RentalCrawler = require("./specificCrawlers/rental");
|
||||
const ProstorCrawler = require("./specificCrawlers/prostor");
|
||||
|
||||
const { OLX_CONFIG, RENTAL_CONFIG } = require("./crawlerConfig");
|
||||
const {
|
||||
OLX_CONFIG,
|
||||
RENTAL_CONFIG,
|
||||
PROSTOR_CONFIG
|
||||
} = require("./crawlerConfig");
|
||||
const PostgresSaver = require("./savers/postgres");
|
||||
|
||||
async function crawlAll() {
|
||||
@@ -32,6 +37,15 @@ async function crawlAll() {
|
||||
RENTAL_CONFIG.RENTAL_MAX_RESULTS_PER_PAGE,
|
||||
RENTAL_CONFIG.RENTAL_IGNORED_USERNAMES,
|
||||
RENTAL_CONFIG.RENTAL_DELAY_BETWEEN_PAGES
|
||||
),
|
||||
new ProstorCrawler(
|
||||
[postgresSaver],
|
||||
PROSTOR_CONFIG.PROSTOR_CRAWLER_AD_TYPE,
|
||||
PROSTOR_CONFIG.PROSTOR_CRAWLER_AD_CATEGORIES,
|
||||
PROSTOR_CONFIG.PROSTOR_MAX_PAGES,
|
||||
PROSTOR_CONFIG.PROSTOR_MAX_RESULTS_PER_PAGE,
|
||||
PROSTOR_CONFIG.PROSTOR_IGNORED_USERNAMES,
|
||||
PROSTOR_CONFIG.PROSTOR_DELAY_BETWEEN_PAGES
|
||||
)
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user