I have many locally-saved .HTML files that have links to remote images. I am looking for a command-line utility that would batch convert these "HTML Only" files to "Webpage, Complete" files - i.e. download the remote images for each local HTML file, and save the HTML file with the same name it had before, but with the image links now pointing to the local copies of the images, stored in a sidecar folder with the same name as the HTML file. I have looked at many different tools but haven't found what I'm looking for yet - maybe somebody can tip me off to a tool I've missed.
Edit: I think I've found a way to getting something close to what I want. I can start up an http server to serve up files in a local folder as follows:
python -m http.server 8000
Then I can use httrack to mirror a page (with remote images) as follows:
httrack http://localhost:8000/localpagetomirror.html -n
I think I could also use wget in this way but I haven't figured out the syntax yet.
If anybody has a better method or tool I'm all ears.