Jump to content

Download a web page to an .mhtml file from Linux terminal

Fr1tzB0t

In chrome, if you right click on a web page and click "Save As", it will be saved as a .mhtml file, which works as a fully functional screenshot of the page.

Is there a way to do this from command line? Using wget only gives the raw html of the page, and I haven't been able to find anything that will download .mhtml

Link to comment
Share on other sites

Link to post
Share on other sites

You can use wget to download the page and all the files linked by that page, so you have a local copy

 

wget  -r -l 2 http://example.com

The options in this command are as follows

  • -r download recursively (so follow links).
  • -l specify the maximum level of recursion.
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×