Module for reading Apple's .webarchive files
Project description
**pywebarchive** is a Python module for reading Apple's `.webarchive` files. It is currently in the very early stages of development.
It provides the `webarchive` module, which consists of two main classes:
* `WebArchive`, to read `.webarchive` files
* `Extractor`, to extract a `WebArchive` to a standard HTML document
Individual resources (i.e., files) in a `WebArchive` are represented by `WebResource` objects.
pywebarchive requires Python 3; there are no current plans to add Python 2 support.
Example usage:
```python
from webarchive import WebArchive, Extractor
archive = WebArchive("example.webarchive")
extractor = Extractor(archive)
extractor.extract("example.html")
```
For detailed documentation, try `python -m pydoc webarchive`.
It provides the `webarchive` module, which consists of two main classes:
* `WebArchive`, to read `.webarchive` files
* `Extractor`, to extract a `WebArchive` to a standard HTML document
Individual resources (i.e., files) in a `WebArchive` are represented by `WebResource` objects.
pywebarchive requires Python 3; there are no current plans to add Python 2 support.
Example usage:
```python
from webarchive import WebArchive, Extractor
archive = WebArchive("example.webarchive")
extractor = Extractor(archive)
extractor.extract("example.html")
```
For detailed documentation, try `python -m pydoc webarchive`.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywebarchive-0.1.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for pywebarchive-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150653e554adce9afa527c25addca586992df51523763e659cfbfa695cbc4610 |
|
MD5 | 3149d6b9542d4712874e3c9ada2c1203 |
|
BLAKE2b-256 | 937a7e05e90830c70d6dfe0e8fc2279f34eacc5d07024d09553f50f86c84d597 |