How to make webfetcher download images

The following script uses WebFetcher to recursively download html
files. But the html pages are missing their jpg images. Any
suggestions?

require ‘webfetcher’
book =
WebFetcher::Page.url(‘Grass types’)
book.recurse.save(‘grass’)

save all files into a subfolder called grass.

never mind, i figured it out.

the jpg files were stored in a folder path that was at the same depth
as the folder i was downloading. i’m guessing webfetcher will exclude
those files.

so here’s the solution:

require ‘webfetcher’
page = WebFetcher::Page.url(‘http://www.american-lawns.com’)
page.recurse.save(‘grass’)