Sunday, September 28, 2008

Clojure upload to Flickr script.

As promised I've checked in the upload script into the svn repository at gashinsky code.
/home/dig/src/gashinsky/src/clj/com/gashinsky $ ./upload.clj /home/dig/Data/Album/1997/Spock/
Skipping: /home/dig/Data/Album/1997/Spock/1997_12_12-17_11_40.jpg
Skipping: /home/dig/Data/Album/1997/Spock/1997_11_21-20_15_08.jpg
Skipping: /home/dig/Data/Album/1997/Spock/1997_12_27-09_38_58.jpg
...
The script is specific to my needs, but it is a script and pretty simple so you can modify it for your own needs. I've uploaded around nine thousand of my pictures with it. It is quite robust and can retry on failure. My router Actiontec MI424WR is the weakest link and it was keep on getting stuck. Now that all of my pictures uploaded, I can start working on syncopy script to do the bidirectional sync to and from Flickr.

No comments: