Zum Inhalt springen

Yahoo! Query Language

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 23. September 2010 um 10:14 Uhr durch 202.46.23.55 (Diskussion). Sie kann sich erheblich von der aktuellen Version unterscheiden.

Yahoo! query language (YQL) is an SQL-like query language created by Yahoo! as part of their Developer Network. YQL is designed to retrieve and manipulate data from APIs through a single Web interface, thus allowing mashups that enable developers to create their own applications.[1]

Initially launched in October 2008 with access to Yahoo APIs,[2] February 2009 saw the addition of open data tables from third parties such as Google Reader, the Guardian, and The New York Times.[3] Some of these APIs still require an API key to access them. On April 29th of 2009, Yahoo introduced the capability to execute the tables of data built through YQL using JavaScript run on the company's servers for free.[3]

YQL Page Scraping

One of the most common use of YQL is getting data from any page on the internet(page scraping), thats why some of the people say yql can do

"Select * from internet"

For example to get data from this page you can do some thing like this

[http://developer.yahoo.com/yql/console/#h=select%20*%20from%20html%20where%20url%3D%22http%3A//en.wikipedia.org/wiki/Yahoo%21_query_language%22%20and%0A%20%20%20%20%20%20xpath%3D'//div%5B@id%3D%22bodyContent%22%5D'&format=xml&diagnostics=true&callback=ren select * from html where url="http://en.wikipedia.org/wiki/Yahoo!_query_language" and    xpath='//div[@id="bodyContent"]']

All data from YQL can be consumed in form of JSON or XML One the example page where this data is scrapped is here

References

  1. Juan Carlos Perez: Yahoo Extends YQL Web Data Query Platform In: PC World, April 29, 2009 
  2. Nicholas Kolakowski: Yahoo Launches YQL Execute, Updates YSlow In: eWeek, April 29, 2009 
  3. a b Jolie O'Dell: Developers: Never Mind the APIs, Here's YQL Execute In: ReadWriteWeb, May 2, 2009 


Vorlage:Yahoo! Inc.


Vorlage:Www-stub