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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file har2warc-1.0.4.tar.gz.

File metadata

  • Download URL: har2warc-1.0.4.tar.gz
  • Upload date:
  • Size: 648.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.5.3

File hashes

Hashes for har2warc-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d795e48acbea083b7c731137f5ac0b3d145e5ed9d468b827957d73c1ebc3027c
MD5 af1b0d23fd819ff03cabd9bb8b809896
BLAKE2b-256 2a00643d545b176b1084af49963d11bebe6ce5ebe118a46ee0be71b719962bd2

See more details on using hashes here.

File details

Details for the file har2warc-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: har2warc-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 651.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.5.3

File hashes

Hashes for har2warc-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 027accfd5c94ea3e9f8c5a98b9b86d397b583d26422e8cd4a23b20079b8ff411
MD5 08439d8d60c94f613666154c2a39ff2f
BLAKE2b-256 247fa0efb71790f5ffdbba80c9561406e988312d65c5c1c3653925db4758dc20

See more details on using hashes here.

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