ThomasDickey / mhtml-tool

Simple tool for mhtml files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mhtml-tool / unmht

Description

Perl script for listing, unpacking, viewing .mht / .mhtml files (MIME-encoded HTML archives).

Based on unmht.

Usage

mhtml-tool [ -e <program> | -l | -o <dir/ or name> ] <MHT file>

By default, unpack an MHTML archive (an archive type saved by some browsers) to the current directory. The first HTML file in the archive is taken for the primary web page, and all other contained files are written to a directory named after that HTML file.

The -e option provides a way to use lynx (or other text browser) on a temporary copy of the archive.

Options:

  • -e, --exec Unpack in temporary directory, run <program> there.
  • -l, --list List archive contents (filename, MIME-type, size, URL)
  • -o, --output Unpack to directory <dir/> or to file <name>.html

The primary web page is written to the output directory (the current directory by default), and the requisites are written to a subdirectory named after the primary HTML file name without extension, with "_files" appended.

URLs in all HTML files referring to requisites are rewritten to point to the saved files.

About

Simple tool for mhtml files.

License:GNU General Public License v2.0


Languages

Language:Perl 100.0%