cantino / ruby-readability

Port of arc90's readability project to Ruby
Apache License 2.0
925 stars 170 forks source link

Images documentation #25

Closed pagojo closed 12 years ago

pagojo commented 12 years ago

The documentation on retrieving images should perhaps state all the steps to achieve the retrieval of image links

e.g.,

You can get a list of images in the content area with .images. This feature requires that the mini_magick gem be installed.

rbody = Readability::Document.new(body, :tags => %w[div p img a], :attributes => %w[src href], :remove_empty_nodes => false)
rbody.images
cantino commented 12 years ago

I will add that to the doc, thank you.