Skip to content

webrecorder/har2warc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

About

Convert HTTP Archive (HAR) -> Web Archive (WARC) format

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages