pywebarchive


Namepywebarchive JSON
Version 0.5.2 PyPI version JSON
download
home_pagehttps://github.com/bmjcode/pywebarchive
SummaryModule for reading Apple's webarchive format
upload_time2023-09-24 15:26:02
maintainer
docs_urlNone
authorBenjamin Johnson
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pywebarchive is software for reading Apple's [webarchive](https://en.wikipedia.org/wiki/Webarchive) format. It consists of two pieces:

* Webarchive Extractor converts webarchive files to standard pages you can open in any browser.
* The `webarchive` Python module is the code "under the hood" that makes the Extractor work. It's available for other applications to use, too.

pywebarchive is open-source software released under the permissive [MIT License](LICENSE). Development has stopped with version 0.5.2 as Apple appears to have [deprecated](https://developer.apple.com/documentation/webkit/webarchive) the webarchive format.


## Features

* Runs on Windows, macOS, and Linux
* Converts webarchive files to plain HTML
* Handles images, scripts, and style sheets
* Converted pages display just like they would in Safari (apart from normal cross-browser rendering differences)


## Downloads

The final version is pywebarchive 0.5.2 (released September 24, 2023). See the [changelog](https://github.com/bmjcode/pywebarchive/blob/v0.5.2/CHANGELOG.md) for what's new.

**Note**: If you're not reading this on GitHub, this section may be out of date. In that case, the latest version of pywebarchive is available at https://github.com/bmjcode/pywebarchive.

File | Size | Description
---- | ---- | -----------
[Webarchive.Extractor.exe](https://github.com/bmjcode/pywebarchive/releases/download/v0.5.2/Webarchive.Extractor.exe) | 7.3 MB | Webarchive Extractor for 32-bit Windows
[Webarchive.Extractor.x64.exe](https://github.com/bmjcode/pywebarchive/releases/download/v0.5.2/Webarchive.Extractor.x64.exe) | 8.0 MB | Webarchive Extractor for 64-bit Windows
[pywebarchive-0.5.2.zip](https://github.com/bmjcode/pywebarchive/archive/refs/tags/v0.5.2.zip) | | source code (zip)
[pywebarchive-0.5.2.tar.gz](https://github.com/bmjcode/pywebarchive/archive/refs/tags/v0.5.2.tar.gz) | | source code (tar.gz)

The Windows version of Webarchive Extractor runs on Windows 7 and higher. It is a portable application -- it doesn't require installation, and won't write to Application Data or the Windows Registry.

On macOS and Linux (and Windows with [Python](https://www.python.org/) installed), you can run Webarchive Extractor directly from the source code. Both command-line ([extractor.py](extractor.py)) and graphical ([extractor-gui.py](extractor-gui.py)) versions are included.

If you're a Python developer, you can also [install the `webarchive` module from PyPI](https://pypi.org/project/pywebarchive/) using `pip install pywebarchive`. Note the module you `import` is just `webarchive`, but the package you *install* is `pywebarchive`; this is because an [unrelated project](https://pypi.org/project/webarchive/) already claimed the shorter package name.


## Requirements

* Python 3
* Tkinter (only required by [extractor-gui.py](extractor-gui.py))
* [userpaths](https://pypi.org/project/userpaths/) (optional; used by [extractor-gui.py](extractor-gui.py) if available)


## More information

Webarchive is the default format for the "Save As" command in Apple's Safari browser. (Other Apple software also uses it internally for various purposes.) Its main advantage is that it can save all the content on a webpage -- including external media like images, scripts, and style sheets -- in a single file. However, the webarchive format is proprietary and not publicly documented, and most other browsers cannot open webarchive files. pywebarchive solves this by converting webarchive files to standard HTML pages, which can be opened in any browser or editor.

The name "pywebarchive" simply reflects that this is webarchive-handling software written in the Python programming language.

pywebarchive follows the [Unix philosophy](https://en.wikipedia.org/wiki/Unix_philosophy) of "do one thing and do it well". With that in mind, pywebarchive deliberately omits all features unrelated to its purpose of converting webarchive files so other browsers can open them. In particular, pywebarchive does *not* support writing webarchive files, and there are no plans to add this in a future release.

[pywebarchive's internals](INTERNALS.md) are fairly well-documented. The code includes extensive comments explaining how it works and why it does various things the way it does. In addition, pywebarchive features dozens of [unit tests](webarchive/test.py) to ensure the code actually does what we think it does, which is further confirmed by manual testing before each release.


## References

* Apple Developer Documentation:
  * [WebArchive class](https://developer.apple.com/documentation/webkit/webarchive)
  * [WebResource class](https://developer.apple.com/documentation/webkit/webresource)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bmjcode/pywebarchive",
    "name": "pywebarchive",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Benjamin Johnson",
    "author_email": "bmjcode@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/da/27/653b07c966fa9de1cba2325106b8b0b70885f107b5725b5c09ded06d8ffb/pywebarchive-0.5.2.tar.gz",
    "platform": null,
    "description": "pywebarchive is software for reading Apple's [webarchive](https://en.wikipedia.org/wiki/Webarchive) format. It consists of two pieces:\n\n* Webarchive Extractor converts webarchive files to standard pages you can open in any browser.\n* The `webarchive` Python module is the code \"under the hood\" that makes the Extractor work. It's available for other applications to use, too.\n\npywebarchive is open-source software released under the permissive [MIT License](LICENSE). Development has stopped with version 0.5.2 as Apple appears to have [deprecated](https://developer.apple.com/documentation/webkit/webarchive) the webarchive format.\n\n\n## Features\n\n* Runs on Windows, macOS, and Linux\n* Converts webarchive files to plain HTML\n* Handles images, scripts, and style sheets\n* Converted pages display just like they would in Safari (apart from normal cross-browser rendering differences)\n\n\n## Downloads\n\nThe final version is pywebarchive 0.5.2 (released September 24, 2023). See the [changelog](https://github.com/bmjcode/pywebarchive/blob/v0.5.2/CHANGELOG.md) for what's new.\n\n**Note**: If you're not reading this on GitHub, this section may be out of date. In that case, the latest version of pywebarchive is available at https://github.com/bmjcode/pywebarchive.\n\nFile | Size | Description\n---- | ---- | -----------\n[Webarchive.Extractor.exe](https://github.com/bmjcode/pywebarchive/releases/download/v0.5.2/Webarchive.Extractor.exe) | 7.3 MB | Webarchive Extractor for 32-bit Windows\n[Webarchive.Extractor.x64.exe](https://github.com/bmjcode/pywebarchive/releases/download/v0.5.2/Webarchive.Extractor.x64.exe) | 8.0 MB | Webarchive Extractor for 64-bit Windows\n[pywebarchive-0.5.2.zip](https://github.com/bmjcode/pywebarchive/archive/refs/tags/v0.5.2.zip) | | source code (zip)\n[pywebarchive-0.5.2.tar.gz](https://github.com/bmjcode/pywebarchive/archive/refs/tags/v0.5.2.tar.gz) | | source code (tar.gz)\n\nThe Windows version of Webarchive Extractor runs on Windows 7 and higher. It is a portable application -- it doesn't require installation, and won't write to Application Data or the Windows Registry.\n\nOn macOS and Linux (and Windows with [Python](https://www.python.org/) installed), you can run Webarchive Extractor directly from the source code. Both command-line ([extractor.py](extractor.py)) and graphical ([extractor-gui.py](extractor-gui.py)) versions are included.\n\nIf you're a Python developer, you can also [install the `webarchive` module from PyPI](https://pypi.org/project/pywebarchive/) using `pip install pywebarchive`. Note the module you `import` is just `webarchive`, but the package you *install* is `pywebarchive`; this is because an [unrelated project](https://pypi.org/project/webarchive/) already claimed the shorter package name.\n\n\n## Requirements\n\n* Python 3\n* Tkinter (only required by [extractor-gui.py](extractor-gui.py))\n* [userpaths](https://pypi.org/project/userpaths/) (optional; used by [extractor-gui.py](extractor-gui.py) if available)\n\n\n## More information\n\nWebarchive is the default format for the \"Save As\" command in Apple's Safari browser. (Other Apple software also uses it internally for various purposes.) Its main advantage is that it can save all the content on a webpage -- including external media like images, scripts, and style sheets -- in a single file. However, the webarchive format is proprietary and not publicly documented, and most other browsers cannot open webarchive files. pywebarchive solves this by converting webarchive files to standard HTML pages, which can be opened in any browser or editor.\n\nThe name \"pywebarchive\" simply reflects that this is webarchive-handling software written in the Python programming language.\n\npywebarchive follows the [Unix philosophy](https://en.wikipedia.org/wiki/Unix_philosophy) of \"do one thing and do it well\". With that in mind, pywebarchive deliberately omits all features unrelated to its purpose of converting webarchive files so other browsers can open them. In particular, pywebarchive does *not* support writing webarchive files, and there are no plans to add this in a future release.\n\n[pywebarchive's internals](INTERNALS.md) are fairly well-documented. The code includes extensive comments explaining how it works and why it does various things the way it does. In addition, pywebarchive features dozens of [unit tests](webarchive/test.py) to ensure the code actually does what we think it does, which is further confirmed by manual testing before each release.\n\n\n## References\n\n* Apple Developer Documentation:\n  * [WebArchive class](https://developer.apple.com/documentation/webkit/webarchive)\n  * [WebResource class](https://developer.apple.com/documentation/webkit/webresource)\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Module for reading Apple's webarchive format",
    "version": "0.5.2",
    "project_urls": {
        "Homepage": "https://github.com/bmjcode/pywebarchive"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef61e3f79dd3274c34e15107dfece693d4a21a5cdae20f68b37085fb044fc05a",
                "md5": "8e3961c867d4eefa62bf1ab748e485e6",
                "sha256": "fec8cd9f5d74fd2b67e5daa62778744484ae62ba397d6a2b4e7a2a1e4dc16eba"
            },
            "downloads": -1,
            "filename": "pywebarchive-0.5.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8e3961c867d4eefa62bf1ab748e485e6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22725,
            "upload_time": "2023-09-24T15:26:01",
            "upload_time_iso_8601": "2023-09-24T15:26:01.078557Z",
            "url": "https://files.pythonhosted.org/packages/ef/61/e3f79dd3274c34e15107dfece693d4a21a5cdae20f68b37085fb044fc05a/pywebarchive-0.5.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "da27653b07c966fa9de1cba2325106b8b0b70885f107b5725b5c09ded06d8ffb",
                "md5": "1a0cf8ef270a8c8df524265a73383689",
                "sha256": "07fa4a0ce82fdd7b03c9378fe76edb6dc08b5e1898ca9105b7ff063246d60e07"
            },
            "downloads": -1,
            "filename": "pywebarchive-0.5.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1a0cf8ef270a8c8df524265a73383689",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19527,
            "upload_time": "2023-09-24T15:26:02",
            "upload_time_iso_8601": "2023-09-24T15:26:02.941416Z",
            "url": "https://files.pythonhosted.org/packages/da/27/653b07c966fa9de1cba2325106b8b0b70885f107b5725b5c09ded06d8ffb/pywebarchive-0.5.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-24 15:26:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bmjcode",
    "github_project": "pywebarchive",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pywebarchive"
}
        
Elapsed time: 0.25020s