iterationlabs/ruby-readability — pull request #13 by marcosinger (2011-12-02 20:38:29+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", ...]