Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

26 views
Skip to first unread message

Kyle Hunter

unread,
Feb 23, 2008, 5:01:19 PM2/23/08
to
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-forum.com/.

0 new messages