Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Discover interesting flickr photos (**EXPERIMENTAL** - Help needed)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
README.rdoc

discovr

This is some experimental code to discover interesting flickr photos based on your favorites. The concept works but it takes way too much time and API requests to fetch and process data.

I'm releasing it to see if someone comes with a better idea, so sorry about dirty code. This is just the result of a weekend playing with flickr API.

Any improvement suggestions will be welcome

Where to look at

Where is the actual code? These files:

Try it

  1. Download it: git clone git://github.com/koke/discovr.git

  2. Edit config/initializers/flickr_api.rb and add your flickr API key and secret. You can get them at www.flickr.com/services/api/keys

  3. Create your database and edit config/database.yml accordingly.

  4. Run rake db:migrate to create the tables and views

  5. Launch the console and fetch data. This can take a while (~25 minutes for me)

    similar = User.lookup("koke").similar_pictures

  6. Launch your server (script/server) and visit localhost:3000/discovr. This can also take a while (~4 minutes first time, ~10s otherwise) and enjoy

License

Copyright © 2009 Jorge Bernal <koke@amedias.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.