Select * from internet
Upcoming SlideShare
Loading in...5
×
 

Select * from internet

on

  • 521 views

 

Statistics

Views

Total Views
521
Views on SlideShare
517
Embed Views
4

Actions

Likes
0
Downloads
2
Comments
0

1 Embed 4

http://192.168.0.108 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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

Select * from internet Select * from internet Presentation Transcript

  • $ Hello!
  • $ whoami@markandey
  • I work @Yahoo!
  • I am a{JavaScript} Hacker
  • Advertising on web is not same as on paper.
  • On web, Ads Have power of HTML5.
  • To make great (html5 app) Ads
  • shift your point of view
  • From Ad to data
  • From Ad to data
  • Ad is not start
  • Ad comes at the end and needmost of the work
  • What you start with is information and a goal
  • What you start with is 1nf0rmat10n and a goal
  • On Web informationis not always structured
  • YQL makes easy toaccess unstructured data
  • YQL isYahoo! Query Language
  • YQL is Yahoo! Query Languageand its not a language of its own.
  • YQL is aweb servicewhich works on SQL like syntax
  • YQL lets youaccess data from Yahoo!
  • YQL lets youaccess data from Yahoo! & rest of web
  • Select {What} from {service} where {condition};
  • For example
  • select * from flickr.photos.search where text=”Delhi" andapi_key=2149834c0fb3e9e84de9c31d50c 7a97d
  • Lets start with YQL console
  • SELECT A TABLE
  • SEE QUERY HERE
  • OUTPUT
  • TAKE AWAY QUERYURL
  • http://query.yahooapis.com/{query} URL  Output<xml> { ‘json’:’json’</xml }
  • Lets see with example
  • select * from flickr.photos.interestingness
  • Here is the code
  • JSON{ “photo”: “xyzphr”, “user”: “phfhfb”}
  • JSON with callback foo ({ “photo”: “xyzphr”, “user”: “phfhfb” });
  • This is what you gethttp://bit.ly/yqlflickr
  • YQL With PHP$session = curl_init($yql_query_url);curl_setopt($session, CURLOPT_RETURNTRANSFER,true);$json = curl_exec($session);
  • YQL With YUIYUI().use(yql, function(Y) { Y.YQL(select * from weather.forecast where location=90210, function(r) { //r now contains the result of the YQL Query //use the YQL Developer console to learn //what data is coming back in this object //and how that data is structured. });});
  • Page Scrapingselect * from html where url=“------" and xpath=“--------”;
  • Delhi FM Radio
  • URLselect * from html whereurl=“http://www.radiomirchi.com/delhi" andxpath=“…”;
  • XPATHselect * from html whereurl=“http://www.radiomirchi.com/delhi" andxpath=“//marquee[@id="ticker_nowplaying"]”;
  • You can search currently playing song on youtubeselect * from youtube.searchwhere query="currently playing song”
  • Can you think of a hack??? +
  • This is what You get http://bit.ly/ yqlmirchi
  • ChromYQLip chromy-clipbit.ly/yqlhtml
  • Content Analysis with YQL bit.ly/yqlcap
  • One catch with CAP
  • One catch with CAP URL length is limited , so you have to switch back to POST, method on YQL.
  • Lets see some more hacks
  • Picture me bit.ly/ pikme
  • What else YQL can do????
  • You can create your own tableRead morebit.ly/yqlODT
  • My random hello!! table
  • You can storesecrets on YQL
  • Twitter oauthSELECT * FROM twitter.STATUS.timeline.friendsWHERE oauth_consumer_key = 9DiJt6Faw0Dyr61tVOATAAND oauth_consumer_secret =XBF9j0B2SZAOWg44QTu6fCwYy5JtivoNNpvJMs6cAAND oauth_token = 18342542-NkgUoRinvdJVILEwCUQJ3sL2CIm2ZwzS5jjj2Lg7yAND oauth_token_secret =D6ewAzsueTzQmrAJGFH0phV5zgWT88FOtcMeqW4YeI; oauth_consumer_key oauth_consumer_secret YQL oauth_token Local storage oauth_token 60
  • Read more here http://bit.ly/ yqloauth
  • Placemaker: geo this
  • You Can Also AccessGoogle Spreadsheet via YQL
  • You need to publishspreadsheet to the web
  • You need to publish spreadsheet to the webhttps://docs.google.com/spreadsheet/pub?key=0AgGxPO1AxEhldFZDNzAzQldLSGp2MzVGVXdlUnIxeUE&output=html
  • You need to publish spreadsheet to the webhttps://docs.google.com/spreadsheet/pub?key=0AgGxPO1AxEhldFZDNzAzQldLSGp2MzVGVXdlUnIxeUE&output=CSV
  • You need to publish spreadsheet to the webhttps://docs.google.com/spreadsheet/pub?key=0AgGxPO1AxEhldFZDNzAzQldLSGp2MzVGVXdlUnIxeUE&output=CSVselect * from csv where url=’….
  • Google Spreadsheetswrite-protected can havespecific access.
  • More Hacks herehttp://bit.ly/markhack
  • Siri vs fake http://bit.ly/ sirichrome
  • Reach mehttp://bit.ly/yqlflickrhttp://bit.ly/yqlmirchihttp://bit.ly/yqlhtmlhttp://bit.ly/yqlcap twitterhttp://bit.ly/pikmehttp://bit.ly/yqlODT @markandeyhttp://bit.ly/yqloauthhttp://bit.ly/markhackhttp://bit.ly/sirichrome