For a conversion to local URLs you will definitely need --span-hosts since 
www.cnn.com refers to images on other hosts.

Also, you do not need curl to fetch the index.html (you named it test.htm).


This will work for you (at least here with wget 1.14-2):

wget --span-hosts --no-clobber --convert-links --no-directories --page-
requisites --follow-tags=img http://www.cnn.com


If you are going to parse a local HTML file you use e.g.
        --force-html -i test.htm
Of course, this works only for absolute URLs found in test.htm.
If you want to download relative URLs as well, add the --base option.


Regards, Tim


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to