How to savethe webpage as .mht in puppeteer

Viewed 303

How to save the webpage as .mht in puppeteer.

There is an option of taking screenshot, also save as pdf but there is no option to save as HTML or other extensions

1 Answers

It seems like you could set the browser flags to enable the saving as mhtml. But there is no way to access the browsers context menu to do the save_as.

The easiest option would be to save as PDF and then convert the PDF to MHTML

Related