Skip to content

Commit

Permalink
Fix Kleinanzeigen API beginning with page=0
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbl authored Jun 18, 2023
1 parent 654efcc commit 9abf303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/KleinanzeigenApiScraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module.exports = class KleinanzeigenApiScraper extends AbstractScraper {

async scrapeSite(url) {
const allPageResults = [];
for (let i = 1; i <= (this.config.maxPages || 1); i++) {
for (let i = 0; i < (this.config.maxPages || 1); i++) {
const results = await this._scrapeSiteWithPageNumber(url, i);
allPageResults.push(results);
}
Expand Down

0 comments on commit 9abf303

Please sign in to comment.