• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
HackU Barcelona 2011: YQL
 

HackU Barcelona 2011: YQL

on

  • 1,720 views

A brief introduction to YQL for the students at Universitat Politècnica de Catalunya participating in HackU 2011.

A brief introduction to YQL for the students at Universitat Politècnica de Catalunya participating in HackU 2011.

Statistics

Views

Total Views
1,720
Views on SlideShare
1,720
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Everyone has an API these days; Google, Amazon, Twitter, Microsoft, Facebook, Yahoo, and a billion others. All of them are different, though, so you end up having to write your own wrappers for each. and. every. one.
  • YQL is different. YQL is the API for APIs. It turns the Internet into your database. Want Google search results? Use YQL. Want a piece of text translated? Use YQL. Want to find a list of all the locations in a webpage? Use YQL. Want to get all the headers in a webpage? Use YQL. YQL acts as middle-man between you and thousands of APIs (and growing). It searches, it translates, it geocodes! It would even make coffee, if you gave it an API for that.
  • YQL uses a SQL-like query language, allowing you to create simple queries from one API or really easily chain queries together. All of this, using one language, against one endpoint that gives you everything on the Internet. But how do you test your queries? To the console!
  • This is the console. You can enter queries here…
  • We can do simple things like ‘Search flickr for 10 cat pictures’. http://www.flickr.com/search/?q=cat&w=all&m=&s=
  • By selecting from flickr.photos.search where the text is cat. But what if we want to do something more complex?
  • Let’s start by finding tweets about Egypt… (select * from twitter.search where q='egypt')
  • And now, let’s make them all Spanish… select * from google.translate where q in (select text from twitter.search where q='egypt') and target="es";) That’s pretty cool. What else can we do?
  • And now, let’s wrap a UI around that… And we have a hack! ( http://isithackday.com/hacks/twitter-translate-form.php?search=egypt&amount=20&language=es )
  • Search Google, Bing, and Yahoo, all at once! (select * from query.multi where queries=' select Title,Description,Url,DisplayUrl from microsoft.bing.web(20) where query="cat"; select title,clickurl,abstract,dispurl from search.web(20) where query="cat"; select titleNoFormatting,url,content,visibleUrl from google.search(20) where q="cat"')
  • Give it a UI… that’s a hack! ( http://icant.co.uk/goohoobi/index.php?search=cat&style= )
  • Grab all the links from the CNN homepage. (select * from html where url=' http://cnn.com/' and xpath='//a')
  • Hundreds of APIs… all in one place. Accessible to your app…

HackU Barcelona 2011: YQL HackU Barcelona 2011: YQL Document Transcript

  • Friday, 11 February 2011Everyone has an API these days; Google, Amazon, Twitter, Microsoft,Facebook, Yahoo, and a billion others.All of them are different, though, so you end up having to write yourown wrappers for each. and. every. one.
  • Friday, 11 February 2011YQL is different. YQL is the API for APIs. It turns the Internet into yourdatabase.Want Google search results? Use YQL.Want a piece of text translated? Use YQL.Want to find a list of all the locations in a webpage? Use YQL.Want to get all the headers in a webpage? Use YQL.YQL acts as middle-man between you and thousands of APIs (andgrowing). It searches, it translates, it geocodes! It would even makecoffee, if you gave it an API for that.
  • select  *  from  internetFriday, 11 February 2011YQL uses a SQL-like query language, allowing you to create simplequeries from one API or really easily chain queries together.All of this, using one language, against one endpoint that gives youeverything on the Internet.But how do you test your queries? To the console!
  • Friday, 11 February 2011This is the console. You can enter queries here…
  • Friday, 11 February 2011We can do simple things like ‘Search flickr for 10 cat pictures’.http://www.flickr.com/search/?q=cat&w=all&m=&s=
  • Friday, 11 February 2011By selecting from flickr.photos.search where the text is cat.But what if we want to do something more complex?
  • Friday, 11 February 2011Let’s start by finding tweets about Egypt…(select * from twitter.search where q=egypt)
  • Friday, 11 February 2011And now, let’s make them all Spanish…select * from google.translate where q in (select text from twitter.searchwhere q=egypt) and target="es";)That’s pretty cool. What else can we do?
  • Friday, 11 February 2011And now, let’s wrap a UI around that…And we have a hack!(http://isithackday.com/hacks/twitter-translate-form.php?search=egypt&amount=20&language=es)
  • Friday, 11 February 2011Search Google, Bing, and Yahoo, all at once!(select * from query.multi where queries= select Title,Description,Url,DisplayUrl from microsoft.bing.web(20) where query="cat"; select title,clickurl,abstract,dispurl from search.web(20) where query="cat"; select titleNoFormatting,url,content,visibleUrl from google.search(20) where q="cat")
  • Friday, 11 February 2011Give it a UI… that’s a hack!(http://icant.co.uk/goohoobi/index.php?search=cat&style=)
  • Friday, 11 February 2011
  • Friday, 11 February 2011Grab all the links from the CNN homepage.(select * from html where url=http://cnn.com/ and xpath=//a)
  • social digitalnz imdb ngmoco simplegeo amazon dopplr infochimps nmm slideshare amee dostopsi instapaper nmsi socialgraph answers edu intuit noaa socialmentio appdb ericssonlabs ip npr n apple esme kiva nyt sparql arxiv etsy lastfm openaustralia spotify auth eyefi limewirestore opencalais sunlight avatars facebook livedoor opencontext tarpipe aws fantasysports local openid test basecamp fcc longurl opensocial text batlas filemd5 maps paypal themoviedb bbc finance mediawikiapi pidgets thetvdb bible fitbit meetup pikchur timeout bit flickr meme plos tinysong bizrate folderscrape mendeley pubsubhubb tumblr blackcountry foursquare microsoft ub tvrage history friendfeed misc query twfy boston gdacs mixi recovery twitter brazil geo movies rss ukparliament britishmuseu github mozillalabs rtm ukpostcode m google museumoflon salesforce upcoming brooklyn gov don seafoodwatc urbanesia bungie gowalla music h usgs christies greader mybloglog search victoriaandal comicvine greenbookin mynewsdesk sears bert couprecoup gs ncbi seomoz vimeo craigslist guardian nestoria shelfari weather darkhelmet hackernews netflix shipping wesabe delicious hatena newegg shopping whitepages digg ign nextbus shoppingcart wordpressFriday, 11 February 2011Hundreds of APIs… all in one place. Accessible to your app…
  • http://query.yahooapis.com/ v1/public/yql?q= <your  query  here>Friday, 11 February 2011