Giter Site home page Giter Site logo

flickrfav's Introduction

A utility to download new favorites from Flickr. It downloads only the new favs, skipping the ones you have stored locally already. Furthermore, it grabs the images at their original size. In case the owner has disallowed downloading the original, it tries to download the images at a size higher than what Flickr would offer through its API (medium size). Flickr hides the higher sizes behind a different secret_id, which is accessible by browsing a page dedicated to sizes. The utility scrapes the page and locates the new secret_id. It then tries to retrieve the image at 2048px. If it fails, then it tries at 1024px, then it gives up and accepts the standard size.

Usage: ./flickrfav.py user_id prefix source_path dest_path

user_id = the id of the Flickr user whose favorites you want to fetch. It can be yourself or somebody else, I believe.

prefix = the prefix of the filenames stored locally. If you use the images a few at a time, maybe posting them to a FB page, you can mark the ones you have used adding a prefix to their filename. Example: you source_path contains the files 123456.jpg 246805.jpg 357000.jpg used468022.jpg used500021.jpg Then you can pass the prefix (used) to the utility so that it can match the filenames properly against the image ids on flickr

source_path = the directory where the local images reside

dest_path = the directory where the new fetched images will be saved. It can be the same as source_path.

Have fun!

flickrfav's People

Contributors

pynchia avatar

Stargazers

Xiaojian "JJ" Deng avatar  avatar

Watchers

James Cloos avatar  avatar Travis Hallenbeck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.