Skip to main content

knot-warc - Python library to work with Web ARChive files

Note: This is one of forks of original WARC repository. It was primarily created for projects of Knowledge Technology Research Group, but its public-wide usage isn't limited.

Fork history
  1. https://github.com/internetarchive/warc (original Python 2 library)
  2. https://github.com/recrm/warc3 (Python 3 port)
  3. https://github.com/jpbruinsslot/warc3 (Python 3 port)
  4. https://github.com/Willian-Zhang/warc3 (WET support)

WARC (Web ARChive) is a file format for storing web crawls (see http://bibnum.bnf.fr/WARC/).

Examples

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'])

There are some examples provided without warranty and support (just for inspiration) in examples folder. They are not updated at all, too.

Documentation

The documentation of this fork of the warc library is on Github Pages (alternatively see original documentation).

Installation

You can install this fork of warc library using pip:

pip install warc-knot

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

Modifications:

  • Willian Zhang
  • Michal Šmahel

Change Log

0.2.5:

  • Update sphinx docs

0.2.4:

  • Fix for Python 3.10+
  • Upgrade HTTP --> HTTPS in tests

0.2.3

  • Support seeking in WARC/WET

0.2.2

  • Allow WET parse

Older...

Metadata

Release files for warc-knot 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 warc-knot 0.2.5
File Size Uploaded
warc_knot-0.2.5.tar.gz 33.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for warc-knot 0.2.5
File Interpreter ABI Platform
warc_knot-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 58.0 kB

Release files / warc_knot-0.2.5.tar.gz

Download URL warc_knot-0.2.5.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c1d23e2504317637ec28abac7813d4553ab6d451d2b6efaf2098a7ec01a01f7d
BLAKE2b-256 checksum
How to use checksums
f49f3a283c47eedb58b4125be799b98dd48a01f980e553cdd876dc1c3a50409b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

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

Download URL warc_knot-0.2.5-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a9bbf46c55d27cce875d431d85c084f5b3f14bb7f28438e7b782dd2958d6764
BLAKE2b-256 checksum
How to use checksums
4d05c4372c1f8d086cdaa7f0130e7660479109bf15d343be4d8beadc108e5e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

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