[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Mechanize downloading image WWW::Mechanize::Page::Link

Kyle Hunter

2/23/2008 10:01:00 PM

Hello,

I've got an html page that contains images that have text with the name
of the images. I'm using Mechanize to easily extract the URLs of the
images.

page.links.text(/jpg|png|gif/)

Unfortunately, I'm not sure as to the most efficient or simple way of
downloading these images using Mechanize. I was thinking about just
making an array containing all of the hrefs, and going through that.

Is there a better way?
--
Posted via http://www.ruby-....