Skip to content

v6.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 10:35

What's Changed

  • Add maxFileSize option by @aivus in #674 (closes #354)
    Limits the size of downloaded resources, in bytes (default null — no limit). Resources bigger than the limit are skipped the same way as resources rejected by urlFilter: they are not saved, no error is raised, and references to them keep their original urls. The download is aborted early — as soon as content-length exceeds 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