how to make webfetcher download images

S

seannakasone

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')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,120
Members
47,740
Latest member
george1

Latest Threads

Top