我知道wget可以获取远程页面及其依赖关系,并重写html,以便图像src属性引用新下载的图像。
我试图转换在互联网上引用图像的本地HTML文件。 我在用着
wget --mirror --page-requisites --convert-links \ --directory-prefix=foo \ --force-html \ --input-file=my_file.html
所有引用的图像都下载到foo/的相应位置,但是my_file.html中的src属性没有被更改。
尝试这个:
wget --recursive --page-requisites --convert-links --span-hosts http://localhost/some.html