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
- https://github.com/internetarchive/warc (original Python 2 library)
- https://github.com/recrm/warc3 (Python 3 port)
- https://github.com/jpbruinsslot/warc3 (Python 3 port)
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| warc_knot-0.2.5.tar.gz | 33.8 kB | Without provenance | Details for warc_knot-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| warc_knot-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for warc_knot-0.2.5-py3-none-any.whl |
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
|
Security for warc-knot 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.