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’)
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’)
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’)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs