Crate wacksy

Crate wacksy 

Source
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 file

Modules§

datapackage
Structured definition of a datapackage.json file. According to the spec:
indexer

Structs§

WACZ
A WACZ object

Enums§

WaczError

Constants§

WACZ_VERSION
Set the WACZ version of the file being created, deprecated in WACZ 1.2.0.