10thingsyoucantdowithout yql1
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

10thingsyoucantdowithout yql1

on

  • 745 views

 

Statistics

Views

Total Views
745
Views on SlideShare
742
Embed Views
3

Actions

Likes
0
Downloads
4
Comments
0

2 Embeds 3

https://twimg0-a.akamaihd.net 2
https://si0.twimg.com 1

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

10thingsyoucantdowithout yql1 Presentation Transcript

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