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.

Use the CLI interface:

from har2warc.har2warc import main
main(['input.har', 'output.warc.gz'])

Using the parser directly:

har_filename = 'example.har'
warc_filename = 'example.warc'

with open(warc_filename, 'wb') as fh:
     warc_writer = WARCWriter(fh)
     parser = HarParser(har_filename, warc_writer)

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.3.tar.gz (648.6 kB view hashes)

Uploaded source

Built Distribution

har2warc-1.0.3-py2.py3-none-any.whl (651.5 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