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

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 and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page