Expand description
Reads WARC files and wraps them up into a WACZ archive.
let warc_file_path = std::path::Path::new("tests/example.warc.gz"); // set path to your ᴡᴀʀᴄ file
let wacz_object = WACZ::from_file(warc_file_path)?; // index the ᴡᴀʀᴄ and create a ᴡᴀᴄᴢ object
let zipped_wacz: Vec<u8> = wacz_object.as_zip_archive()?; // zip up the ᴡᴀᴄᴢ
std::fs::write("tests/output.wacz", zipped_wacz)?; // write out to fileModules§
- datapackage
- Structured definition of a datapackage.json file. According to the spec:
- indexer
Structs§
- WACZ
- A WACZ object
Enums§
Constants§
- WACZ_
VERSION - Set the WACZ version of the file being created, deprecated in WACZ 1.2.0.