Playing around with FlickrAPI

As a programming challenge, our Python guru Kushal da gave us an assignment to make a python program that downloads all the photoes from a given set from flickr.com.

He gave it some days back and I came to know about it through Ria. I’ve been thinking to start it but last night I saw khushi was talking about that program. So I felt that, I should also try it seriously.

After a good amount of web surfing, I came to know many things about FlickrAPI and there’s mainly two user library in python for it. One is the Beej’s Guide and the another is flickr.py.

I found many people is suggesting the later and I also found it easier.

So I went along with the code. experimenting all the methods, attiributes in it, and found it a powerful tool to interact with flickr. After a whole night again, in early morning, I made it.

The code getphoto.py and flickr.py can be found here.

But you have to use your own API key to use that. Just browse the flickr.py file and put your API key into the API_KEY constant.

I got really interested in various APIs since then and hoping to try a hand at Google API also.

Miles to go before I sleep. 🙂

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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