Welcome to Teemu’s Blog

Picture of me.

Hi, my name is Teemu Harju. I'm a 27-year-old engineer from Espoo, Finland and this is site is my contribution to the world wide web. I'll write here about all kinds of stuff that interests me. Python coding is my passion. I'm also interested in different kinds of web technologies.

Something Flickr on my mobile

Yesterday evening I started playing around with the Python for Series 60 installation on my Nokia 6630. I’ve always liked to code in Python. There is just that something in that language that I like. And I like the fact that the name comes from Monty Python. Anyway… I started experimenting Python for Series 60 using the Flickr API. I chose to use XML-RPC to connect to the API since that seems like the most simple solution to use.

The first problem naturally came from the fact that there is no xmlrpclib module installed in current Python for Series 60 release. Anyway I managed to get it working by taking the xmlrpclib and xmllib modules from Python 2.2 release and putting them in my phones python folder along with my test script. So now XML-RPC works and I can connect to Flickr API.

Then there was more problems. Flickr API is kind of limited in that sence that when one is using XML-RPC to connect you get the replies back in XML format and not in XML-RPC format. The latter format would be a lot easier because now I need also an XML parser to parse the reply from Flickr API. Ok… I’ve got the xmllib module working, but that is not the best solution for parsing XML in Pyhon. I did some experimenting with pyexpat, but couldn’t get it working yet with the Series 60 emulator so couldn’t decide yet whether to use it or not. If only Flirck would send those XML-RPC replies in correct format.

So the project continues… I’ll keep you posted.

One Response to “Something Flickr on my mobile”

  1. Teemu’s Blog » Blog Archive » Mosaickr version 0.001 Alpha Says:

    […] Now I’ve gotten this far in my Python for Series 60 project. The app is called Mosaickr and you can see a pic of it below. At the moment it fetches a random picture from Flickr and then puts the picture into pieces. What I still need to do is to shuffle the pieces and make them move using arrow keys. When I get this ready I will put it on my site for download. Hopefully soon… […]

Leave a Reply