Repository navigation
What's Changed
- Add
maxFileSizeoption by @aivus in #674 (closes #354)
Limits the size of downloaded resources, in bytes (defaultnull— no limit). Resources bigger than the limit are skipped the same way as resources rejected byurlFilter: they are not saved, no error is raised, and references to them keep their original urls. The download is aborted early — as soon ascontent-lengthexceeds the limit, or once the received bytes pass it.scrape({ urls: ['https://example.com'], directory: '/path/to/save', maxFileSize: 10 * 1024 * 1024 // skip resources bigger than 10 MB });
- Port README from master to 6.x by @aivus in #675
Full Changelog: v6.0.1...v6.1.0
The release is supported by our Platinum Sponsors