5. The trouble with data!
• You need to find data API
• Get Access - Signup for key
• Find data endpoint
• Read docs to learn what parameters you
have
• Get data in obscure format
• Use data after converting and filtering
• More APIs you use, more is your
annoyance
6. To make data access
easy on the web,
Yahoo! created YQL
7. YQL turns web services
and data on the web
into databases.
8. YQL lets you access
almost all API’s in a
Standardized manner.
13. Finding Videos about IIT-D!
SELECT * FROM
youtube.search where query="IIT Delhi"
14. Selecting Photos of Hackday!
SELECT * FROM
flickr.photos.search where text="hackday"
SELECT * FROM flickr.photos.search where
text="hackday” LIMIT 5
18. Guess what this does?!
SELECT * FROM google.translate where q in
(select title from rss(1) where url="http://
rss.news.yahoo.com/rss/topstories")
and target='hi'
19. Company Headlines anyone??!
select * from html(1) where url=
"http://finance.yahoo.com/q?s=AMZN"
and xpath='//div[@id="yfi_headlines"]/div[2]/
ul/li/a'
22. GEO HACKING!
• GOOD NEWS! - Not hard to do.
• YQL as always has a solution to
most geo problems.
23. REQUIREMENTS!
• Turning a location into a place.
• Finding geographical hierarchy.
• Geo-tagging information.
24. REQUIREMENTS!
• Turning a location into a place.
• Finding geographical hierarchy.
• Geo-tagging information.
25. GEOCODING AND REVERSE-GEOCODING!
• converting street addresses or place
names into geographic coordinates
(and vice versa).
h"p://developer.yahoo.com/yql/console/#h=desc%20geo.placefinder
26. YQL to the rescue!
select * from geo.placefinder where
text="IIT Delhi"
select * from geo.placefinder where
text="28.61282,77.231079" and gflags="R"
27. REQUIREMENTS!
• Turning a location into a place.
• Finding geographical hierarchy.
• Geo-tagging information.
29. REQUIREMENTS!
• Turning a location into a place.
• Finding geographical hierarchy.
• Geo-tagging information.
30. PLACEMAKER!
• Takes text/web URL and
extracts the geographical
information from it.
SELECT * FROM
geo.placemaker WHERE
documentContent = "Hey,
I am in bangalore now.
Will visit mumbai and delhi
before going back to
sunnyvale" AND
documentType="text/plain"
31. PLACEMAKER!
SELECT * FROM geo.placemaker where
documentURL="http://en.wikipedia.org/
wiki/Country" and documentType="text/
html"
SELECT * FROM geo.placemaker WHERE
documentURL = "http://
timesofindia.feedsportal.com/33039/f/
533917/index.rss" AND
documentType="text/rss"
32. Final Lessons: Links!
http://developer.yahoo.com/yql/console
http://github.com/yql/yql-tables
http://isithackday.com/hacks/geo/
http://isithackday.com/geoplanet-explorer/