Skip to main content

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


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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pimht-0.4.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pimht-0.4.2.tar.gz.

File metadata

  • Download URL: pimht-0.4.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pimht-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f0c7f6105a9860e99aa4cb1d6fda0699916d6248d1b04a62a43737fed7606f6b
MD5 89fcad9f9a4b8910aaf65c604def2a06
BLAKE2b-256 da9386bfbbfbf4579ae58be478f899cca0528fa5899aed66adfdb57b2cf01257

See more details on using hashes here.

File details

Details for the file pimht-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pimht-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pimht-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 468cdb482a48843361e51ce8f9bae6ff53a6a981ada6467f4a6b540345f6add7
MD5 8c66592e2dacc21f347cbba358293ab6
BLAKE2b-256 6b8c034103a80993e5f00e1bcbb87bbf241ce3ba18a39afc305198412e93c84f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page