yql presentation at geek girls dinner sydney

20
Girl Geek Dinner YQL Pratibha Gannavarapu & Allan Shone Yahoo!7 17 th June 2009

Upload: misspreethi

Post on 20-Jan-2015

1.859 views

Category:

Technology


0 download

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

Page 1: YQL Presentation at Geek Girls Dinner Sydney

Girl Geek Dinner YQL

Pratibha Gannavarapu & Allan Shone

Yahoo!717th June 2009

Page 2: YQL Presentation at Geek Girls Dinner Sydney

Pratibha GannavarapuTechnical yahoo

Who Am I?

Page 3: YQL Presentation at Geek Girls Dinner Sydney

The best way to mashup data from the web!

What am I doing here tonight?

Page 4: YQL Presentation at Geek Girls Dinner Sydney

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

Problem!

• Locating the right URLs for accessing them 

• Going through API documentation

Page 6: YQL Presentation at Geek Girls Dinner Sydney

Need easier way to access this data!

• Pipes

• YQL

Solution!

Page 7: YQL Presentation at Geek Girls Dinner Sydney

• 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

• 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

 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

• REST query format

http://query.yahooapis.com/v1/public/yql?

q={QUERY}&format={FORMAT}

• Format xml or json

Using from within a script!

Page 12: YQL Presentation at Geek Girls Dinner Sydney

show tables;

What data is available?

Page 13: YQL Presentation at Geek Girls Dinner Sydney

• 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

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

http://www.datatables.org/flickr/flickr.auth.frob.xml

Example definition

Page 16: YQL Presentation at Geek Girls Dinner Sydney

•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

• 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

http://stills360.com/demos/yql.html

An example!

Page 19: YQL Presentation at Geek Girls Dinner Sydney

• 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

http://developer.yahoo.com/yqlhttp://github.com/http://www.wait-till-i.com/ - Chris Heilmann

Thank you!

Resources