SingleFile icon indicating copy to clipboard operation
SingleFile copied to clipboard

Convert mhtml pages saved in Chrome to SingleFile's html format

Open defcon79 opened this issue 1 year ago • 1 comments

*Is your feature request related to a problem? Please describe. I have a lot of webpages I saved in Chrome, using the default save as mhtml built into the browser. The format of this file is different from the one used by SingleFile

Describe the solution you'd like I'd like a way for singlefile to operate on local mhtml (and also html complete perhaps) files, and do the same processing - it seems to remove a lot of extra html elements and do cleanup and the output seems a lot smaller compared to Chrome's default mhtml.

Describe alternatives you've considered (optional) I have not found any other solutions that can do this.

Additional context (optional) (actually this is more for singlefile-cli I suppose but am requesting here as its the main project)

defcon79 avatar Oct 07 '24 08:10 defcon79

Maybe extracting MHTML files into HTML and saving the result with SingleFile could work. Did you try for example https://github.com/rumpeltux/python-unmht?

gildas-lormeau avatar Oct 10 '24 14:10 gildas-lormeau

It will be appreciated.

dsiddens avatar Nov 14 '24 10:11 dsiddens

Please see this project: https://github.com/gildas-lormeau/mhtml-to-html

gildas-lormeau avatar Jan 10 '25 21:01 gildas-lormeau