With mechanize, how do I scrape the src of an img-element into a file?

0 views
Skip to first unread message

bornbo...@gmail.com

unread,
Sep 15, 2009, 6:24:46 AM9/15/09
to forumgrouper
To: mechani...@rubyforge.org
Reply | Reply to all | Forward | Print | Delete | Show original
Hi,

With mechanize, how do I scrape the src of an img-element into a file?

I figured out how to do it using openURI:

my_html = ""
open(u, @hdrs).each {|s| my_html << s}

-b
Reply all
Reply to author
Forward
0 new messages