Skip to main content

Overview

Warchaeology provides command-line tools for inspecting, validating, converting, deduplicating, indexing, searching, and serving web archive collections. The executable is named warc.

Choose a workflow​

TaskCommandDocumentation
Inspect records and payloadswarc ls, warc cat, warc consoleCLI reference
Validate an archivewarc validateValidation options
Convert ARC, NEDLIB, or WARC inputswarc convertConversion options
Deduplicate payloadswarc dedupDeduplication options
Audit revisit references and recover lost donorswarc auditCollection audit and recovery
Rebuild independently replayable yearly collectionswarc redupeYearly preservation guide
Export CDXJ or populate an index databasewarc indexCapture indexing guide
Index WACZ packageswarc index, warc serveWACZ packages
Search archived textwarc index --fulltext, warc serve --fulltextSearch console and API
Build immutable indexes and serve capture querieswarc zipnum, warc serveZipnum and serving

Rebuild collections by time interval​

A donor is a record that stores the payload referenced by a revisit record.

redupe inventories all supplied WARC records, resolves revisit dependencies, and groups captures by UTC year, month or day (--interval). It retains request and metadata records, accounts for identical aliases, and reports conflicting IDs or missing payload donors.

Start with an audit, then write the yearly collection and index a completed year:

warc redupe --audit --verify-payloads --report audit.json --recursive sources/
warc redupe --output-dir yearly --index-dir working-index \
--report transformation.json --recursive sources/
warc index --index-file yearly/2023.cdxj yearly/2023/

Supply older donor WARCs as well as the captures you want to reorganize. Each period is published only after its output files and payload dependencies have been verified. Keep working-index to restart an interrupted rewrite with the same sources and configuration.

See the yearly preservation guide for audit findings, checksums, provenance manifests, restart behavior, and replay setup. Capture indexes generated with warc index provide URL/time lookup for the yearly WARCs.

Getting started​

Run warc help or warc COMMAND --help for command-specific options.