Skip to content

Sometimes the scrapper skips adding some files to total_items #1

@jetrotal

Description

@jetrotal

I solved it by adding a second total_items = total_items.concat(items); right before the function resolves itself.

Idk if that solves every case of this issue, since I didn'tunderstand it for real... I guess the counter couldn't deal with every time it captures an asset.

if (items.length <= 0) {
                    this.page.off('response');
                    total_items = total_items.concat(items); //👈
                    resolve(total_items);
                    break;
                } else {
                    total_items = total_items.concat(items);
                    console.log(`${total_items.length} collected so far`)
                    offset += count;
                }

EDIT - didn't solve at all, it skips 4 or 5 files at random.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions