10thingsyoucantdowithout yql1

674 views
631 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
674
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

10thingsyoucantdowithout yql1

  1. 1. 10 THINGSWhich you can’t do without YQL! Markandey Singh
  2. 2. I amMarkandey Singh,I work @ Yahoo! 2
  3. 3. &I am a JavaScript Hacker javacript != java 3
  4. 4. YQL 4
  5. 5. 10 THINGSWhich you can’t do without YQL! 5
  6. 6. This isworkshop session 6
  7. 7. And mostly about {code} 7
  8. 8. 8
  9. 9. 9
  10. 10. 10
  11. 11. #1Converting Any XMLREST API to JSON API 11
  12. 12. http://www.cleartrip.com/places/hotels/info/41750 12
  13. 13. XML API JSON API select * from xml where url=‘……’ 13
  14. 14. 14
  15. 15. #2Cross Domain AJAX 15
  16. 16. Domain-2Domain-1 XMLHttpRequest 16
  17. 17. Domain-2Domain-1 ✗ XMLHttpRequest 17
  18. 18. Domain-1 Domain-2 XMLHttpRequest 18
  19. 19. Domain-1 Domain-2 JSONP ✔ 19
  20. 20. 20
  21. 21. #3Parsing HTML on cloud 21
  22. 22. http://www.purplegene.com/static/invalid_html_example.html 22
  23. 23. http://www.purplegene.com/static/invalid_html_example.html Div , body and html is not closed 23
  24. 24. http://www.purplegene.com/static/invalid_html_example.html Div , body and html is not closed 24
  25. 25. 25
  26. 26. #4JavaScript only page scraping 26
  27. 27. http://passportindia.gov.in/AppOnlineProject/online/chiefOfficer 27
  28. 28. ChromYQLip 28
  29. 29. 29
  30. 30. #5Converting dead web into live widget 30
  31. 31. Computer jokeshttp://www.guy-sports.com/humor/computers/computer_10laws.htm 31
  32. 32. 32
  33. 33. #6creating logic as service 33
  34. 34. 34
  35. 35. 35
  36. 36. #7hiding JavaScriptexecution secret 36
  37. 37. SET max_results=1 ONyoutube.search;select * fromyoutube.search where query="louis ck" 37
  38. 38. SET max_results=1 ONyoutube.search;select * fromyoutube.search where query="louis ck" 38
  39. 39. 39
  40. 40. #8OAuth client without having a server 40
  41. 41. http://derek.io/blog/2010/how-to-secure-oauth-in-javascript/ 41
  42. 42. Twitter oauthSELECT * FROM twitter.STATUS.timeline.friendsWHERE oauth_consumer_key = 9DiJt6Faw0Dyr61tVOATAAND oauth_consumer_secret =XBF9j0B2SZAOWg44QTu6fCwYy5JtivoNNpvJMs6cAAND oauth_token = 18342542-NkgUoRinvdJVILEwCUQJ3sL2CIm2ZwzS5jjj2Lg7yAND oauth_token_secret =D6ewAzsueTzQmrAJGFH0phV5zgWT88FOtcMeqW4YeI; 42
  43. 43. 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 43
  44. 44. 44
  45. 45. https://chrome.google.com/webstore/detail/ggdpdjbjioohmgdhmegcbnodpdcamhpj 45
  46. 46. 46
  47. 47. 47
  48. 48. https://github.com/markandey/mojito-example-youtube 48
  49. 49. http://www.markandey.com/ 49
  50. 50. Thank You!! 50

×