mechanize:Mechanize::Page#image_urls
以下のような HTML で
<html> <head> <title>image test</title> </head> <body> <img src="img1.png" width="256" height="128" alt="foo"> <img src="img2.png" width="200" height="100" alt="bar"> </body> </html>
>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb74e232c ... >> page = agent.get('http://127.0.0.1:8080/test04_image.html') => #<Mechanize::Page {url #<URI::HTTP:0xb74dea10 URL:http://127.0.0.1:8080/test04_image.html>} {meta} {title "image test"} {iframes} {frames} {links} {forms}> >> page.image_urls => ["http://127.0.0.1:8080/img1.png", "http://127.0.0.1:8080/img2.png"]