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)
parser.parse(warc_filename)
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)
Built Distribution
har2warc-1.0.3-py2.py3-none-any.whl
(651.5 kB
view hashes)
Close
Hashes for har2warc-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0457403a8f6d328345d23a6d8b0e363eb588032dafe75c370edb9e43e0ae3a6f |
|
MD5 | f09b0c48110d9d6b716b62e506126e7a |
|
BLAKE2b-256 | a66b347a6ac21b842ca48aeca1b9322cc4d0620df1b738c5e7690bbc3f5e6d2b |