Skip to main content

Convert HTTP Archive (HAR) -> Web Archive (WARC) format

Project description

Convert HTTP Archive (HAR) -> Web Archive (WARC) format

pip install har2warc

Command-Line Usage

har2warc <input.har> <output.warc.gz>

Libary Usage

har2warc can be used as a python library.

Simple usage similar to CLI interface:

from har2warc.har2warc import har2warc

har2warc('input.har', 'output.warc.gz')

Also supports reading and writing from buffers:

from har2warc.har2warc import har2warc

har = json.loads(...)

with open('output.warc.gz', 'w+b') as warc:
     har2warc(har, warc)

     # READ WARC
     warc.seek(0)
     warc.read()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

har2warc-1.0.4.tar.gz (648.7 kB view hashes)

Uploaded source

Built Distribution

har2warc-1.0.4-py2.py3-none-any.whl (651.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page