Python Flickr Uploader

After buying a Flickr Pro account at the beginning of the summer and uploading all of my photos, I wanted an automatic way of uploading my photos from my camera. I already had a Python script that renamed all of my photos to the date and time they were taken, so all I had to do was get a module that would upload them to Flickr. It turns out I had a bit of trouble doing that, and I had to modify someone else’s code to make it work, which was not very fun.

Anyway long story short, I recently rewrote most of the code from scratch for fun over break. What makes my Flickr Uploader Python library different from all of the other ones out there is that mine uses JSON instead of XML to talk to Flickr. I am most proud of the authentication code, but for some reason Flickr does not support JSON for file uploads, so I had to resort to XML. I also found out that Python does not have built in support for HTTP file uploads, so I had to copy code from somewhere else for that.

Download the code: (16.8 KB)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s