photoinfo

This simple gem will be able to fetch the metadata of a specific istockphoto.com image from the website if the ID of a photo is provided.

This is a class project, and the purpose of this gem is to learn and demonstrate how to isolate and select the contents of a web page. Please do not abuse istockphoto.com.

How to use it

Install by:

    gem install photoinfo

Instantiate an object and provide an istockphoto.com photo ID as an argument.

    object = Photoinfo.new (insert an istockphoto.com photo ID number)

Get the title by:

    object.title

Get the description by:

    object.description

Get the contributor by:

    object.contributor

Get the keywords by:

    object.keywords

Get the collection info by:

    object.collection

Get the uploaded on info by:

    object.uploadedon

To save the metadata to a YAML file:

    object.save

Note: When you use the save method, it will fetch all the metadata and save it to a YAML file.

This gem requires:

Contributing to photoinfo

Copyright © 2012 Eddie Lee. See LICENSE.txt for further details.