Skip to content

kbrannen/mhtml-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

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

Based on 'unmht' (http://www.volkerschatz.com/unix/uware/unmht.html).

Usage

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

By default, unpacks 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.

Options:

  • -l, --list List archive contents (file name, MIME type, size and URL)
  • -o, --output Unpack to directory or to file .html

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

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

About

Simple tool for mhtml files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%