I know that wget can fetch a remote page and its dependencies and rewrite the html so that image src attributes reference the newly downloaded images.
I am trying to convert local html files that reference images on the Internet. I'm using
wget --mirror --page-requisites --convert-links \
--directory-prefix=foo \
--force-html \
--input-file=my_file.html
All of the referenced images are downloaded to the appropriate places in foo/ but the src attributes in my_file.html aren't being changed.
wget's built in functionality, but I ended up replacing the attributes manually. – Jul 11 '11 at 14:30--convert-linkswhich is a synonym for-k. The referenced question is asking what to do in the event that -k was not used. This question, on the other hand, is asking how to use the-koption with a local html file. I am currently having the same problem. I am using-kand, thanks to the OP's question, I have figured out how to use--input-filefor a local input. However, just like the OP, the links in the html file are not being updated. – Evan de la Cruz Feb 22 '17 at 17:07