Skip to content

mutalis/flickr-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Flickr fetcher App.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published