--archive-body-size-limit
- CLI
- --archive-body-size-limit
Truncates any response body larger than this many bytes and continues the capture. Applies to every WARC body, and to HAR bodies with --har-capture-bodies. A truncated WARC record is marked as such, and a HAR reports the capture as incomplete.
Example
zshot -f archive.warc.gz \
--archive-body-size-limit 104857600 \
https://zshot-cli.com/example_assets/zemu/index.html{
"url": "https://zshot-cli.com/example_assets/zemu/index.html",
"output_type": "warc",
"archive_body_size_limit": 104857600
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/index.html","output_type":"warc","archive_body_size_limit":104857600}' \
-o archive.warc.gz