This code has not been modified since mid-2010, and I stopped using most of it in 2013 when I ceased regular usage of Flickr. Since then changes have doubtless occurred. For one thing, Smugmug purchased Flickr in 2018 and has likely changed things since then.
A set of simple scripts using the Perl Flickr::API module that I've written to supplement the Oragnizr for managing my photos. These require that you get your own API key (free), so it is not a distributed app, but more of a sample of using the module.
Start with flickrapirc.sample
,
edit in your key then use
flickr-getfrob
and
flickr-gettoken
to authenticate
your app. (Tip: app name on flickr is associated with the API key,
not with the code for the app.)
The way I use these is to select some stuff in the Organizr and
apply a temporary tag to them there, like RESETDATE, then use
flickr-search
to fetch the ids
of those. Then I can look at the list to make sure things are right (did I
forget to remove the RESETDATE tag from last time?), extract just
the ids and finally process them. Example workflow:
$ flickr-search --tsv tags RESETDATE > resetlist.txt ## check resetlist.txt for accuracy $ cut -f 1 resetlist.txt > resetids.txt # the 'now-' keyword posts the photos in the order they are in the # file, each set 1 second earlier than the previous. $ flickr-posted now- resetids.txt ... $ flickr-removetag RESETDATE resetids.txt ... $ flickr-addtags newtag '"a tag with spaces"' moretags -- resetids.txt ... # settify will use the first image as the set thumbnail $ flickr-settify "New Set Name" resetids.txt ... $ flickr-imgmod 742 resetids.txt ... # add to 10 Million Photos $ flickr-addtogroup 20759249@N00 resetids.txt
A couple of programs not by me.
Bonus: flickr-orderallsets: a shell script to reorder all sets based on how they are sorted in ouy collections. An example of using the undocumented API calls for collections.
© 2009 Eli the Bearded