summaryrefslogtreecommitdiff
path: root/old/published/Webmonkey/Monkey_Bites/2007/05.21.07/Wed/flickr.txt
blob: 024740aac7374e5696dd837c08ee616190e5127d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Flickr is a great service for storing and sharing you photos on the web, but uploading images is often a hit or miss proposition. There's always the default uploader provided by Flickr, but its a bit cumbersome for large sets of photos. 

I've been relying on Kula's <a href="http://kula.jp/software/1001/">1001</a> to upload photos for some time, but unfortunately the program is notoriously unstable on Intel macs. Michael looked at [Fotofox][4] as an alternative, but while Fotofox is nice and full-featured, it somehow never grabbed me.

Being a bit of python fan I was excited to find [uploader.py][1], a Flickr uploading solution that works by watching a folder on your hard drive and, with a little help from good old <code>cron</code>, can automatically upload new files whenever it discovers them.

Uploader.py is the brainchild of Cameron Mallory and the clever folks over at Lifehacker have written a [great tutorial][2] on how to set things up on both Windows and Mac OS X.

As with any outside program accessing Flickr, the first time you run uploader.py you'll need to login to your Flickr account and authorize the script to work with your account. 

Uploader.py has one dependancy, it needs to use the XMLTramp.py file to parse XML. You can grab XMLTramp [here][3] and just add it to your python path (or alternately just stick it in the folder with uploader.py). 

Other than that you just need to change a couple lines in the uploader.py script to point to the directory you want it to watch. From there you can either run it by hand in the terminal or add it to a cron job.

For the less programatically inclined the uploader.py page says there is a GUI version available, though I haven't tested it.

[1]: http://berserk.org/uploadr/ "uploadr.py"
[2]: http://lifehacker.com/software/hack-attack/automatically-upload-a-folders-photos-to-flickr-262311.php "Automatically upload a folder's photos to Flickr"
[3]: http://berserk.org/uploadr/xmltramp.txt "XMLTramp"
[4]: http://blog.wired.com/monkeybites/2006/11/easy_photo_uplo.html "Easy Photo Uploads with Fotofox"