A Python library designed to efficiently parse and work with ARC and WARC files, specifically tailored with fixes and optimizations for ClueWeb09 WET (Web Extracted Text) files. It provides an interface to iterate over records within these compressed archives. The current version is 0.2.5, indicating a pre-1.0 status with potential for future API changes, and it's maintained on an as-needed basis.
pip install warc3-wet-clueweb09Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a dummy ClueWeb09 WET.gz file and then use `warc3-wet-clueweb09` to parse records from it. It shows the basic steps of opening the gzipped file in binary mode and iterating through the `Warc3Record` objects.
Always verify parsed data when using with non-ClueWeb09 WARC/WET files. Consider more general WARC libraries like `warcio` or `warc` for broader compatibility.
Pin the library version in your `requirements.txt` (e.g., `warc3-wet-clueweb09==0.2.5`) to ensure consistent behavior across deployments. Test thoroughly after any version upgrade.
Always open gzipped WARC/WET files using `gzip.open(filepath, 'rb')`. Ensure the file exists and is indeed gzipped.
No dependency data recorded yet.