Is it possible to download images from a website without knowing the name of the file?

eg *.jpg, *.gif etc

I know I can download a htm file and parse it for img tags but I don't want to do that.