1
1
Fork
You've already forked mhtml2html
0
Conversion from MHT(ML) format to completely self-contained HTML.
  • Python 100%
Find a file
2021年01月12日 13:37:15 +00:00
.gitignore ignore pycache files 2021年01月12日 11:58:11 +01:00
mhtml2html.py make project installable via pip 2021年01月12日 12:01:34 +01:00
Pipfile init 2020年05月26日 14:46:21 +02:00
Pipfile.lock init 2020年05月26日 14:46:21 +02:00
README.md Add test files repository 2021年01月12日 13:37:15 +00:00
setup.py make project installable via pip 2021年01月12日 12:01:34 +01:00

mhtml2html

Conversion from MHT(ML) format to completely self-contained HTML.

Features

  • embed all attached and referenced resources (images, css, ...)
  • remove all <script> tags
  • remove all <link rel="dns-prefetch" ...> tags

Installation

Requirements

  • Python 3
  • pip

Setup

pip install git+https://gitlab.com/thomas.mc.work/mhtml2html

Usage

mhtml2html path/to/file.mht

A corresponding output file will be created (and replaced without confirmation): path/to/file.mht.html

All dropped attachments are printed to stderr on execution. Feel free to file an issue if you spot something that should be included. Dont' forget to add the mhtml file.

Development

Dependency Management

This project is using Pipenv — "the officially recommended Python packaging tool from Python.org" and thus the designated successor of pip and virtualenv.

Testing

Have a look at the test files repository: https://gitlab.com/thomas.mc.work/mhtml2html-test-files

These files are required to be working flawlessly.