--warc
- CLI
- --warc
- REST
- with_warc
Writes a WARC of the page and its resources alongside the render, gzip-compressed. On the server, the WARC is returned as a Link response header.
Warning: Archives Contain Credentials
A WARC records every credential seen on the wire, including session cookies, bearer tokens and OAuth tokens the visited site issues. There is no redaction option.
Example
zshot -f zemu.png \
--warc archive.warc.gz \
https://zshot-cli.com/example_assets/zemu/index.html{
"url": "https://zshot-cli.com/example_assets/zemu/index.html",
"output_type": "png",
"with_warc": true
}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":"png","with_warc":true}' \
-D - -o zemu.png