YQL Markandey Singh(HackU IIT Kanpur)
Hello
I amMarkandey
I am{Markandey}
Yahoo Query Language
YQL  is not alanguage
The YQL Web Service enables applications to query,filter, and combine data from different sourcesacross the Internet.
This is YQL ConsoleYQL is not a language
URL output  http://query.yahooapis.com/{query}<xml>                    {                              ‘json’:’json’</xml ...
Lets see with example
select * from flickr.photos.interestingness
Here is the code
JSON{ “name”: “markandey”}
JSON with callbackfoo ({ “name”: “markandey”});
This is what you gethttp://bit.ly/yqlflickr
Page Scrapingselect * from html where     url=“------" and       xpath=“--------”;
Faculty at IIT Kanpur
URL      select * from html whereurl=“http://www.cse.iitk.ac.in/peopl         e/faculty.html" and              xpath=“……..”;
XPATH      select * from html whereurl=“http://www.cse.iitk.ac.in/peopl         e/faculty.html" and    xpath=“//div[@id="p...
This is what You get               http://bit.ly/   iitkfaculty
ChromYQLip chromy-clip
Content Analysis with YQL    http://bit.ly/yqlcap
One catch with CAP
One catch with CAP             URL length is             limited , so you             have to switch             back to P...
iTunes Store Top 10 Songs
iTunes Store Top 10 Songs
Youtube search
Language sugar: randomize
Some more???
Some more???
Lets see some more hacks
Picture mehttp://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_consum...
Read more here  http://bit.ly/yqloauth
More Hacks example herehttp://www.purplegene.com/                             http://bit.ly/markhack
Siri vs fake
Reach me@markandey
YQL (IITK PPT)
Upcoming SlideShare
Loading in …5
×

YQL (IITK PPT)

792 views

Published on

Published in: Technology, Design
2 Comments
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
792
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
2
Likes
0
Embeds 0
No embeds

No notes for slide

YQL (IITK PPT)

  1. 1. YQL Markandey Singh(HackU IIT Kanpur)
  2. 2. Hello
  3. 3. I amMarkandey
  4. 4. I am{Markandey}
  5. 5. Yahoo Query Language
  6. 6. YQL is not alanguage
  7. 7. The YQL Web Service enables applications to query,filter, and combine data from different sourcesacross the Internet.
  8. 8. This is YQL ConsoleYQL is not a language
  9. 9. URL output http://query.yahooapis.com/{query}<xml> { ‘json’:’json’</xml }
  10. 10. Lets see with example
  11. 11. select * from flickr.photos.interestingness
  12. 12. Here is the code
  13. 13. JSON{ “name”: “markandey”}
  14. 14. JSON with callbackfoo ({ “name”: “markandey”});
  15. 15. This is what you gethttp://bit.ly/yqlflickr
  16. 16. Page Scrapingselect * from html where url=“------" and xpath=“--------”;
  17. 17. Faculty at IIT Kanpur
  18. 18. URL select * from html whereurl=“http://www.cse.iitk.ac.in/peopl e/faculty.html" and xpath=“……..”;
  19. 19. XPATH select * from html whereurl=“http://www.cse.iitk.ac.in/peopl e/faculty.html" and xpath=“//div[@id="permanent- faculty"]/ul//a”;
  20. 20. This is what You get http://bit.ly/ iitkfaculty
  21. 21. ChromYQLip chromy-clip
  22. 22. Content Analysis with YQL http://bit.ly/yqlcap
  23. 23. One catch with CAP
  24. 24. One catch with CAP URL length is limited , so you have to switch back to POST, method on YQL.
  25. 25. iTunes Store Top 10 Songs
  26. 26. iTunes Store Top 10 Songs
  27. 27. Youtube search
  28. 28. Language sugar: randomize
  29. 29. Some more???
  30. 30. Some more???
  31. 31. Lets see some more hacks
  32. 32. Picture mehttp://bit.ly/pikme
  33. 33. What else YQL can do????
  34. 34. You can create your own tableRead morebit.ly/yqlODT
  35. 35. My random hello!! table
  36. 36. You can storesecrets on YQL
  37. 37. 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 38
  38. 38. Read more here http://bit.ly/yqloauth
  39. 39. More Hacks example herehttp://www.purplegene.com/ http://bit.ly/markhack
  40. 40. Siri vs fake
  41. 41. Reach me@markandey

×