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:
- open-uri
- nokogiri
- yaml
Contributing to photoinfo
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
- Fork the project.
- Start a feature/bugfix branch.
- Commit and push until you are happy with your contribution.
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright
Copyright (c) 2012 Eddie Lee. See LICENSE.txt for further details.