65daysofstatic: unmissable
at Koko, London
May 15, 2010 at 5:57 pm Comments (0)
at Koko, London
Hey you!
If you are in London on the 27th of May you cannot miss Philip Tellis from Yahoo! Developer Network talking about web performance!!
The place and more info, I (almost) forgot this:
http://measuringwebperformance.eventbrite.com/
I said!
Today I´m going to show you how to develop a nice web application for mobile devices mixing 3 of my favourites technologies: Yahoo! Blueprint, YQL and Django.
Let me present those technologies, just in case you still don´t know:
Our web application
Each time I move to a new city or I´m looking for a new home, I spend lots of hours surfing the web trying to find the perfect ´sweet home´. I´d like to search for the precious home even if I´m not in front of my computer.
Today we are going to help those flat seekers, we are going to build a mobile property finder using the Nestoria web services. Check out the Nestoria api and you will understand our YQL queries.
We will retrieve the information from the Nestoria web service using YQL and will output blueprint using the Django framework,a nice application stack to develop awesome mobile applications.
What will do our mobile web application? Easy, we will present the user a simple form asking for a location where to search, a maximun price (per week) and also the minimun number of bedrooms. Once the user enter this information we will present a list with all results found, then each item from that list will point to the original web page that contains the information for each flat. Simple, but is a nice first step, if you like you can add more information to the search form or to the presentation layer.
Getting the data with YQL
As you may know, YQL is a rocking idea from Y!, it´s a way of sqlize web services, and of course it´s open. That means we can create new tables, share them, reuse other people tables etc.
Visit http://datatables.org/, and get an idea on how many people are right now building tables for lots and lots of web services. Come on! Check the tables, experiment search parameters and data combinations in the YQL console: http://developer.yahoo.com/yql/console/
For our particular case, there is a Nestoria open table so we can use this to extract the data. Here is the table code, check it, take a look to the parameters, you can perform the same actions as using the web service.
Diving into the Yahoo! world we can find another good hint, the YOS people have created lots of libraries in lots of languages to interact with all Yahoo open services, and of courses YQL is one of those services with api. So visit the project page at github and download the yos-social python library. Follow the installation instructions and let´s try to get some flat info from YQL, try this on the python console:
Cool, so we can get the info in a easy way. (más...)