0.0
No commit activity in last 3 years
No release in over 3 years
Fetchs Flickr images using a list of search keywords as arguments.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 5.0
~> 10.0

Runtime

~> 0.9.9
~> 0.14.0
 Project Readme

Flickr fetcher App.

App. requirements

Write a Ruby command line application that

  • accepts a list of search keywords as arguments
  • queries the Flickr API for the top-rated (term: interestingness) image for each keyword
  • downloads the results
  • crops them rectangularly
  • assembles a collage grid from ten images and
  • writes the result to a user-supplied filename
  • host your code repository on github or bitbucket

If given less than ten keywords, or if any keyword fails to result in a match, retrieve random words from a dictionary source such as /usr/share/dict/words. Repeat as necessary until you have gathered ten images.

Be careful and conservative in your handling of files and other IO. Bonus points for wrapping the application in a Gem. Please include a README with instructions on how to install and run your application.

Hint: You're free to use any existing Gem which helps you to get the challenge done.

Installation

gem install flickr_fetcher

Usage

flickr_search keywords filename

If not keywords or filename are given, it will use the dictionary and the output filename will be collage.jpg

The last argument is the name of the jpeg image, an .jpg extension will be added to this name.

Example: flickr_search art music dance sunset collage-image

License

Source code released under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Docs released under a Creative Commons Attribution 4.0 International License.

GPL V3 Creative Commons License