I'm trying to automate the web browser Save As action on right click on a website, that downloads the entire page including HTML, CSS and assets(png, svg, etc.).
How can this be done in Rust programmatically to perform the same action and automate it?
The browser has a rewriting step where it uses its understanding of the full list of resources used on the page after JS executes to save all those resources to the resource folder and rewrite the paths in the HTML.