crawling and saving to mongo
This commit is contained in:
@@ -122,7 +122,7 @@ export default class OlxCrawler {
|
||||
async indexPages(start, end, maxResults = 1000) {
|
||||
let results = {};
|
||||
for (let i = start; i <= end; i++) {
|
||||
let result = await this.indexPage(i, numberOfResults);
|
||||
let result = await this.indexPage(i, maxResults);
|
||||
Object.assign(results, result)
|
||||
await this.sleep(5000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user