Top Banner
Markandey Singh 10 THINGS Which you can’t do without YQL!
50

10 things you can't do without YQL

Jul 13, 2015

Download

Technology

markandey
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 10 things you can't do without  YQL

Markandey Singh

10 THINGSWhich you can’t do

without YQL!

Page 2: 10 things you can't do without  YQL

I am

MarkandeySingh,

I work @ Yahoo!

2

Page 3: 10 things you can't do without  YQL

&I am a JavaScript

Hacker

3

javacript != java

Page 4: 10 things you can't do without  YQL

YQL

4

Page 5: 10 things you can't do without  YQL

5

10 THINGSWhich you can’t do

without YQL!

Page 6: 10 things you can't do without  YQL

This is

workshopsession

6

Page 7: 10 things you can't do without  YQL

And mostly about{code}

7

Page 8: 10 things you can't do without  YQL

8

Page 9: 10 things you can't do without  YQL

9

Page 10: 10 things you can't do without  YQL

10

Page 11: 10 things you can't do without  YQL

#1Converting Any XMLREST API to JSON API

11

Page 12: 10 things you can't do without  YQL

12

http://www.cleartrip.com/places/hotels/info/41750

Page 13: 10 things you can't do without  YQL

13

XML API JSON API

select * from xml where url=‘……’

Page 14: 10 things you can't do without  YQL

14

Page 15: 10 things you can't do without  YQL

#2Cross Domain AJAX

15

Page 16: 10 things you can't do without  YQL

16

Domain-1Domain-2

XMLHttpRequest

Page 17: 10 things you can't do without  YQL

17

Domain-1Domain-2

XMLHttpRequest

Page 18: 10 things you can't do without  YQL

18

Domain-1Domain-2

XMLHttpRequest

Page 19: 10 things you can't do without  YQL

19

Domain-1Domain-2

JSONP✔

Page 20: 10 things you can't do without  YQL

20

Page 21: 10 things you can't do without  YQL

#3Parsing HTML on cloud

21

Page 22: 10 things you can't do without  YQL

22

http://www.purplegene.com/static/invalid_html_example.html

Page 23: 10 things you can't do without  YQL

23

http://www.purplegene.com/static/invalid_html_example.html

Div , body and html is not closed

Page 24: 10 things you can't do without  YQL

24

http://www.purplegene.com/static/invalid_html_example.html

Div , body and html is not closed

Page 25: 10 things you can't do without  YQL

25

Page 26: 10 things you can't do without  YQL

#4JavaScript only page

scraping

26

Page 27: 10 things you can't do without  YQL

27

http://passportindia.gov.in/AppOnlineProject/online/chiefOfficer

Page 28: 10 things you can't do without  YQL

ChromYQLip

28

Page 29: 10 things you can't do without  YQL

29

Page 30: 10 things you can't do without  YQL

#5Converting dead web

into live widget

30

Page 31: 10 things you can't do without  YQL

Computer jokes

31

http://www.guy-sports.com/humor/computers/computer_10laws.htm

Page 32: 10 things you can't do without  YQL

32

Page 33: 10 things you can't do without  YQL

#6creating logic as

service

33

Page 34: 10 things you can't do without  YQL

34

Page 35: 10 things you can't do without  YQL

35

Page 36: 10 things you can't do without  YQL

#7hiding JavaScript execution secret

36

Page 37: 10 things you can't do without  YQL

37

SET max_results='1' ON youtube.search;select * from youtube.search where query="louis ck"

Page 38: 10 things you can't do without  YQL

38

SET max_results='1' ON youtube.search;select * from youtube.search where query="louis ck"

Page 39: 10 things you can't do without  YQL

39

Page 40: 10 things you can't do without  YQL

#8OAuth client without

having a server

40

Page 41: 10 things you can't do without  YQL

41http://derek.io/blog/2010/how-to-secure-oauth-in-javascript/

Page 42: 10 things you can't do without  YQL

Twitter oauth

42

SELECT * FROM twitter.STATUS.timeline.friendsWHERE oauth_consumer_key = '9DiJt6Faw0Dyr61tVOATA'AND oauth_consumer_secret = 'XBF9j0B2SZAOWg44QTu6fCwYy5JtivoNNpvJMs6cA'AND oauth_token = '18342542-NkgUoRinvdJVILEwCUQJ3sL2CIm2ZwzS5jjj2Lg7y'AND oauth_token_secret = 'D6ewAzsueTzQmrAJGFH0phV5zgWT88FOtcMeqW4YeI';

Page 43: 10 things you can't do without  YQL

Twitter oauth

43

SELECT * FROM twitter.STATUS.timeline.friendsWHERE oauth_consumer_key = '9DiJt6Faw0Dyr61tVOATA'AND oauth_consumer_secret = 'XBF9j0B2SZAOWg44QTu6fCwYy5JtivoNNpvJMs6cA'AND oauth_token = '18342542-NkgUoRinvdJVILEwCUQJ3sL2CIm2ZwzS5jjj2Lg7y'AND oauth_token_secret = 'D6ewAzsueTzQmrAJGFH0phV5zgWT88FOtcMeqW4YeI';

YQL

Local storage

oauth_token

oauth_token

oauth_consumer_key

oauth_consumer_secret

Page 44: 10 things you can't do without  YQL

44

Page 45: 10 things you can't do without  YQL

45

https://chrome.google.com/webstore/detail/ggdpdjbjioohmgdhmegcbnodpdcamhpj

Page 46: 10 things you can't do without  YQL

46

Page 47: 10 things you can't do without  YQL

47

Page 48: 10 things you can't do without  YQL

48

https://github.com/markandey/mojito-example-youtube

Page 49: 10 things you can't do without  YQL

49

http://www.markandey.com/

Page 50: 10 things you can't do without  YQL

Thank You!!

50