FlickrUploadr

FlickrUploadr

FlickrUploadr is a tool to upload your pictures to Flickr. There are some official tools for this task, but they aren’t available on Linux, so I wrote my own.

Please note that FlickrUploadr doesn’t currently work if you have a Yahoo! account. I’ll try to update it soon.

This version of FlickrUploadr is written in Python and Gtk, using the PyGtk bindings, to install it, download the tarball, unpack it and install the package:

# python setup.py install

in the directory where you just unpacked it. If you get an error about a missing Makefile, you need to install the Python development package from your distribution.

Then you can run it from a shell:

$ Uploadr

Just drop files over the window to upload the pictures.

A window will pop up asking your login details (which you can optinally save) and the picture’s metadata (title and tags). At the end of the upload a web browser window (currently Firefox is hardcoded, sorry) will open with the pictures you just uploaded, allowing you to add descriptions and change the captions one by one.

History

30 August 2005

FlickrUploadr 0.6.0 – Finally the much requested configuration saving (optional for login credentials). Removed the hardcoded firefox. No longer sets default title. Changed license to GPL to comply with xmltramp.

18 March 2005

FlickrUploadr 0.5.2 – Fixed to work with Python 2.4. If the previous version worked for you, you don’t need to download it again.

21 October 2004

FlickrUploadr 0.5.1 – Fixed to accept files dropped from Konqueror. Fixed long integer exception and crash. On some systems it will have a black background instead of white and look uglier, but I don’t know ho to fix this for everybody.

12 October 2004

FlickrUploadr 0.5 – Installable and runnable from anywhere, login details asked when needed, can drop pictures or pass them on the command line, can set pictures as private, opens Flickr after uploading allowing editing of pictures’ data.

16 September 2004

FlickrUploadr 0.1First release: uploading works, you have to pass the login details on the command line, can’t be installed must be run from its own directory.

FlickrClient

FlickrClient is a Python interface to the Flickr API.

Using it really simple: create a FlickrClient instance passing your API_KEY to the constructor and then call the methods on the returned instance, replacing dots with underscores.

Example:

client = FlickrClient(API_KEY)

person = client.flickr_people_getInfo(user_id=USER_ID)
photoSets = client.flickr_photosets_getList(user_id=USER_ID)

print person.username, "has", len(photoSets), "photosets:",
print ', '.join([str(set.title) for set in photoSets])

I used xmltramp to parse the responses and I return the created xmltramp object, so accessing the data is really simple: you access sub-elements just as if they were attributes of your node and attribute access is done as a function call on the node: person('id'), to retrieve the text element of a node, convert it to string: str(person.username).

The client dynamically creates the calls, so it shouldn’t break when new functions are added to Flickr or if parameters change (you’ll have to change your calls, of course).

I also have developed a Python FlickrUploadr to upload your pictures from Linux (or anywhere else you can get Python and PyGtk to build).

Download

FlickrUploadr fixed on Python 2.4

Ok, this was quick. FlickrUploadr 0.5.2 is here and kicking.

FlickrUploadr broken on Python 2.4

Due to a problem in the file upload routine I’m using, FlickrUploadr is currently broken in Python 2.4. Ubuntu Hoary ships that and I’m using it, so I need to fix the script as soon as possible.

Older posts: 1 2