The ‘wget’ unix command can download HTML, images, and can follow links I believe. I used it a long time ago, and if I recall correctly you can find it and download it using Mac Ports (or was it the other unix command installer for Mac… I am blanking on the name).