O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Yahoo Query Language (YQL)

For the rest of our examples, we will use a new resource also provided by Yahoo! though not related with the YUI Library. Yahoo! has opened most of its databases to the public via a simple interface. It is an SQL-like language that allows you many of the standard SQL query operations. You can see it in operation at the YQL console at:

http://developer.yahoo.com/yql/console/

You can send an HTTP request to: http://query.yahooapis.com/v1/public/yql appending any of several arguments, among them the q argument containing the YQL request, such as:

select title, abstract, url, source from search.news where query="dakar"

The YQL service will retrieve a listing of records from the search.news table related to the Dakar car rally ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required