WACZ
A web-archive bundle suitable for archiving a whole site.
Convert to ZIM
To read a crawl offline in Kiwix, add --warc to write the crawl’s WARC beside the WACZ, then convert the WARC with openZIM’s warc2zim:
zshot -f winnie-the-pooh.wacz \
--warc winnie-the-pooh.warc.gz \
--crawl-links \
--crawl-link-depth 1 \
https://zshot-cli.com/example_assets/winnie-the-pooh/
docker run --rm -v "$PWD":/output ghcr.io/openzim/warc2zim \
warc2zim winnie-the-pooh.warc.gz \
--output /output \
--name winnie-the-pooh \
-u https://zshot-cli.com/example_assets/winnie-the-pooh/-u names the ZIM’s main page. Installing warc2zim with pip needs the libmagic and cairo system libraries; the Docker image includes them.
Example
zshot -f winnie-the-pooh.wacz \
--crawl-links \
--crawl-link-depth 1 \
https://zshot-cli.com/example_assets/winnie-the-pooh/{
"url": "https://zshot-cli.com/example_assets/winnie-the-pooh/",
"output_type": "wacz",
"crawl_links": true,
"crawl_link_depth": 1
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/winnie-the-pooh/","output_type":"wacz","crawl_links":true,"crawl_link_depth":1}' \
-o winnie-the-pooh.wacz