Powered by OPF
OPF Q&A Static Archive
133 questions · 234 answers · 193 comments · 172 tags · 118 contributors · archived August 2026
Archived copy. This is a static snapshot of the OPF community Q&A (qanda.digipres.org), preserved from its Question2Answer database. It is read-only and nothing here has been edited since capture in August 2026. To ask new questions, use the OPF community on GitHub.

Merging & Deduping WARC files

1
votes
Is there any programme/script that will take a group of WARC files and merge them, removing exact duplicate responses ?

I realise this probably goes somewhat against good practice, but for reasons of space I would like to remove the approximately 90% replication of content (e.g. unchanged images) but retain the varying parts.

1 answer

1
votes

for merging, warccat concat does the job.

for cleaning/dedup: using JWAT-Tools you can unpack a warc file

jwattools.sh unpack your-archive.warc.gz

the result are single files containing a warc record. then you can remove duplicates or unwanted things and reconstruct the warc just with cat

cat your-archive.warc.{1,6,10} >your-new-new.warc

update: https://github.com/tari/warcdedupe