So the question explains itself very good.
Is there a console command line to save the html with firefox?
Thanks.
Use pup. Unlike automate-save-page-as, pup doesn't save the raw HTML, but outputs the parsed HTML.
pup