Skip to main content

Note: This is a fork of the original (now dead) warc repository.

WARC (Web ARChive) is a file format for storing web crawls.

http://bibnum.bnf.fr/WARC/

This warc library makes it very easy to work with WARC files.:

import warc
with warc.open("test.warc") as f:
    for record in f:
        print(record['WARC-Target-URI'], record['Content-Length'])

And WET files.:

import warc
with warc.open("test.warc.wet") as f:
    for record in f:
        print(record['WARC-Target-URI'], record['Content-Length'])

Documentation

The documentation of the warc library is available at http://warc.readthedocs.org/.

Apart from the install from pip, which will not work for this warc3 version, the interface as described there is unchanged.

License

This software is licensed under GPL v2. See LICENSE file for details.

Authors

Original Python2 Versions:

  • Anand Chitipothu

  • Noufal Ibrahim

Python3 Port:

  • Ryan Chartier

  • Jan Pieter Bruins Slot

  • Almer S. Tigelaar

  • Sean MacAvaney (3.10)

WET and seek support

  • Willian Zhang

Change Log

0.2.4 Python 3.10 compatibility (thanks to @seanmacavaney)

0.2.3 Support seeking in WARC/WET

0.2.2 Allow WET parse

older… see https://github.com/internetarchive/warc

Metadata

Release files for warc3-wet 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for warc3-wet 0.2.5
File Size Uploaded Provenance Actions
warc3_wet-0.2.5.tar.gz 17.9 kB Without provenance Details for warc3_wet-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for warc3-wet 0.2.5
File Interpreter ABI Platform Actions
warc3_wet-0.2.5-py3-none-any.whl Python 3 none any Details for warc3_wet-0.2.5-py3-none-any.whl

Total release size: 36.6 kB

Release files / warc3_wet-0.2.5.tar.gz

Download URL warc3_wet-0.2.5.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
15e50402dabaa1e95307f1e2a6169cfd5f137b70761d9f0b16a10aa6de227970
BLAKE2b-256 checksum
How to use checksums
21c624c9b4a2b2b1741b57d7f44ff9790eb4ef28de898c17c2b1ca1efabf8c96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / warc3_wet-0.2.5-py3-none-any.whl

Download URL warc3_wet-0.2.5-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a9a525383fb1af159734baa75f349a7c4ec7bccd1b938681b5748515d2bf624
BLAKE2b-256 checksum
How to use checksums
f4990a5582a106679fd9439af51631b6c6cb627fd96cbc85a02927e6812605b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for warc3-wet 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page