YQL Presentation at Geek Girls Dinner Sydney
-
Upload
misspreethi -
Category
Technology
-
view
1.860 -
download
0
description
Transcript of YQL Presentation at Geek Girls Dinner Sydney
![Page 1: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/1.jpg)
Girl Geek Dinner YQL
Pratibha Gannavarapu & Allan Shone
Yahoo!717th June 2009
![Page 2: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/2.jpg)
Pratibha GannavarapuTechnical yahoo
Who Am I?
![Page 3: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/3.jpg)
The best way to mashup data from the web!
What am I doing here tonight?
![Page 4: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/4.jpg)
There is abundant data on the web!
• Web pages
• Web services
• RSS
• CSV
Good Thing About Web!
![Page 5: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/5.jpg)
Problem!
• Locating the right URLs for accessing them
• Going through API documentation
![Page 6: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/6.jpg)
Need easier way to access this data!
• Pipes
• YQL
Solution!
![Page 7: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/7.jpg)
• 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!
![Page 8: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/8.jpg)
• RESTful webservice call
• Select {what} from {service} where {condition}
• Returns XML or JSON
What is YQL?
![Page 9: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/9.jpg)
select * from flickr.photos.search where text="Geek Girls Dinner Sydney Yahoo" limit 3
An Example
![Page 10: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/10.jpg)
• REST query format
http://query.yahooapis.com/v1/public/yql?
q={QUERY}&format={FORMAT}
• Format xml or json
Using from within a script!
![Page 11: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/11.jpg)
http://developer.yahoo.com/yql/console/
Lets try our Flickr example here
Console!
![Page 12: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/12.jpg)
show tables;
What data is available?
![Page 13: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/13.jpg)
• 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??
![Page 14: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/14.jpg)
XML file with the following info:
• Authentication and Security Options
• Sample Query
• YQL Data Structure
• Pagination Options
Defining Open Data Tables
![Page 15: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/15.jpg)
http://www.datatables.org/flickr/flickr.auth.frob.xml
Example definition
![Page 16: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/16.jpg)
•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
![Page 17: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/17.jpg)
• 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
![Page 18: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/18.jpg)
http://stills360.com/demos/yql.html
An example!
![Page 19: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/19.jpg)
• 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
![Page 20: YQL Presentation at Geek Girls Dinner Sydney](https://reader035.fdocuments.us/reader035/viewer/2022062617/54bd63294a79595e238b4605/html5/thumbnails/20.jpg)
http://developer.yahoo.com/yqlhttp://github.com/http://www.wait-till-i.com/ - Chris Heilmann
Thank you!
Resources