Metadata-Version: 2.0
Name: har2warc
Version: 1.0.3
Summary: Convert HTTP Archive (HAR) -> Web Archive (WARC) format
Home-page: https://github.com/webrecorder/har2warc
Author: Ilya Kreymer
Author-email: ikreymer@gmail.com
License: Apache 2.0
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Provides: har2warc
Requires-Dist: http-status
Requires-Dist: six
Requires-Dist: warcio

har2warc
========

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:

.. code:: python

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


Using the parser directly:

.. code:: python

   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)







