notes.husk.org. scribblings by Paul Mison.

2011-06-29

post/7035845755

photo 06:17:36
For a long time, I’ve maintained a set called Your Favourites on Flickr, which contains those photos that lots of people have marked as, well, a favourite. For ages I did this by hand, but I’ve finally got lazy enough to write a little script that does it. As it’s only a one-off, gist seemed the best place, but I thought I’d still write a short blurb for it.
It’s pretty straightforward. It only uses two methods, flickr.stats.getPopularPhotos and flickr.photosets.editPhotos, but that’s enough to generate a set of 81 photos (making a nice square from the new nine-wide thumbnail layout on set pages).
Of course, it would be nice if this had a web interface, and if it offered to let you choose a set to use or to create a new one, and so on, but I already had the set, and like I said, I’m lazy. Feel free to fork it and make it do any of that stuff.
One thing to note is that the flickr.stats methods are only available to pro users who’ve opted in to statistics, so this isn’t that useful if you’re not one. Sorry.
(Ironically, the original un-inverted picture of a star I’m using to illustrate the post is no longer in the set. Ah well.)

For a long time, I’ve maintained a set called Your Favourites on Flickr, which contains those photos that lots of people have marked as, well, a favourite. For ages I did this by hand, but I’ve finally got lazy enough to write a little script that does it. As it’s only a one-off, gist seemed the best place, but I thought I’d still write a short blurb for it.

It’s pretty straightforward. It only uses two methods, flickr.stats.getPopularPhotos and flickr.photosets.editPhotos, but that’s enough to generate a set of 81 photos (making a nice square from the new nine-wide thumbnail layout on set pages).

Of course, it would be nice if this had a web interface, and if it offered to let you choose a set to use or to create a new one, and so on, but I already had the set, and like I said, I’m lazy. Feel free to fork it and make it do any of that stuff.

One thing to note is that the flickr.stats methods are only available to pro users who’ve opted in to statistics, so this isn’t that useful if you’re not one. Sorry.

(Ironically, the original un-inverted picture of a star I’m using to illustrate the post is no longer in the set. Ah well.)

what

more