Parser for mhtml files
Project description
pimht
Python mhtml parser
Installation
$ pip install pimht
Example
import pimht
mhtml = pimht.from_filename("test.mhtml")
for part in mhtml:
print(part)
Performance
The chardet
module, used by default, is slow. Performance can be improved by also installing cchardet
with:
$ pip install pimht[speedups]
This is aimed specifically at parsing Google Chrome generated snapshots as fast as possible, but feel free to report issues with MHTML files from other sources.
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
pimht-0.4.3.tar.gz
(4.4 kB
view details)
Built Distribution
pimht-0.4.3-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file pimht-0.4.3.tar.gz
.
File metadata
- Download URL: pimht-0.4.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d16c27ad0ebeb4802f5e55aab98e8b97beb90ee016d0a17ae1bfdf3fe88ad5 |
|
MD5 | 146e7c2217296cdf5851774df9e635d7 |
|
BLAKE2b-256 | 7a914c775446f5cd645f0e3fe46d0764e37e293df26e22ad3f93752d6a0a2856 |
File details
Details for the file pimht-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: pimht-0.4.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61de02440ac0c9ce3cb0df4885067d1bdfd7c84c54bf7f828592d580c8e71d4a |
|
MD5 | 065d7b341994355a3d7ed2f85b27891c |
|
BLAKE2b-256 | ec54e32958c9f09a82160488e79b9a9297d6dc27da41909eb8de9e278546acd7 |