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

10 things you can't do without YQL

3,954 views

Published on

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

No Downloads
Views
Total views
3,954
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
23
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

10 things you can't do without YQL

  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

×