yql presentation at geek girls dinner sydney
DESCRIPTION
This presso gives you an overview of Yahoo!'s YQL and its advantages and some examples! A few of the examples are inspired from Chris Heilmann's presentation too!TRANSCRIPT
Girl Geek Dinner YQL
Pratibha Gannavarapu & Allan Shone
Yahoo!717th June 2009
Pratibha GannavarapuTechnical yahoo
Who Am I?
The best way to mashup data from the web!
What am I doing here tonight?
There is abundant data on the web!
• Web pages
• Web services
• RSS
• CSV
Good Thing About Web!
Problem!
• Locating the right URLs for accessing them
• Going through API documentation
Need easier way to access this data!
• Pipes
• YQL
Solution!
• Pipes is an online service that lets you
remix popular feed types and create data
mashups using a visual editor
• There are several modules to fetch the data
and other mechanisms such as sort,
filtering etc.
• Once a pipe is built, it can be accessed and
build your app based on it.
Pipes!
• RESTful webservice call
• Select {what} from {service} where {condition}
• Returns XML or JSON
What is YQL?
select * from flickr.photos.search where text="Geek Girls Dinner Sydney Yahoo" limit 3
An Example
• REST query format
http://query.yahooapis.com/v1/public/yql?
q={QUERY}&format={FORMAT}
• Format xml or json
Using from within a script!
http://developer.yahoo.com/yql/console/
Lets try our Flickr example here
Console!
show tables;
What data is available?
• No
• Open Tables
- Create and use your own table
definitions
- Enables YQL to bind to any data
source through the SQL-like syntax
and fetch data.
Only Y! data??
XML file with the following info:
• Authentication and Security Options
• Sample Query
• YQL Data Structure
• Pagination Options
Defining Open Data Tables
http://www.datatables.org/flickr/flickr.auth.frob.xml
Example definition
•Using IN
select * from search.termextract where
context in (
select description from rss where
url='http://stills360.com/blog/feed/' limit 3 )
Console
More Examples
• select * from htmlwhere url=‘http://www.news.com.au/'and xpath='//h3/a’ limit 5
Console
• RSS Feeds select * from rss where url=“http://stills360.com/blog/feed”
More examples
http://stills360.com/demos/yql.html
An example!
• Makes data accessing more easier
• More easier for developers
• Access Y! data
• Add your own open tables
• select * from {atom, csv, html, rss, feed,
table}
• In short it is select * from Internet
Summary
http://developer.yahoo.com/yqlhttp://github.com/http://www.wait-till-i.com/ - Chris Heilmann
Thank you!
Resources