iterationlabs/ruby-readability — pull request #16 by marcosinger (2012-01-24 23:02:59+00:00)
Title: List Images

Parsing best candidate (or html) for find images.
You can use this for thumbnail, for instance.

You can use options for skip some formats, like this:

# gif is default.
@doc = Readability::Document.new("www.example.com", :ignore_image_format => ["gif", "png"])

If you want, may use options for width and height:

@doc = Readability::Document.new(@bbc, :min_image_height => 400)
@doc = Readability::Document.new(@bbc, :min_image_width => 100)

After initialize, call **images** method:

@doc.images
=> ["www.example.com/images/1.jpg", "www.example.com/images/2.jpg", ...]