The 7 Things I Know About Cyber Security After 25 Years | April 2024
YQL - HackU IIT Madras 2012
1. Tapping the web for your hack
http://www.flickr.com/photos/triller/2226679393/sizes/z/in/photostream/
Pradeep B V
Developer under construction, Yahoo!
@pradeepbv
http://slideshare.net/pradeepbv
2. Getting information off the Internet is
like taking a drink from a fire hydrant.
Mitchell Kapor
http://www.flickr.com/photos/sfllaw/126657764/sizes/z/in/photostream/
3. Challenge is to figure out a way to get
only what you want!
http://www.flickr.com/photos/traftery/4330388280/sizes/z/in/photostream/
8. Are you asking me to do this in 24hrs?
• You need to find data API
• Get Access – Sign up for key
• Find data endpoint
• Read docs to learn what parameters you have
• Get data in obscure format
• Use data after converting and filtering
• Model UI to use this data
21. SELECT * FROM youtube.search(10)
where query='kolaveri'
22. SELECT * FROM flickr.photos.search
where text="hacku" and
api_key=“your_flickr_api_key"
23. select * from flickr.photos.info where
photo_id in
(select id from
flickr.photos.search where
woe_id in
(select woeid from
geo.places where
text='chennai,india’
)
and license=4
and api_key=“your_flickr_api_key"
)
and api_key=“your_flickr_api_key"
33. Search Yahoo! Answers for resolved questions
about cars:
select * from answers.search where
query="cars" and type="resolved”
34. Extract important terms from top stories on
Yahoo! news:
select * from search.termextract where
context in (select description from rss where
url='http://rss.news.yahoo.com/rss/topstories
')
35. Find the location of IIT Chennai:
select * from geo.placefinder where text="iit
chennai"
36. Find distance between Bangalore and
Chennai:
select * from geo.distance where
place1="bangalore" and place2=”chennai”
37. Get stock quotes for Yahoo!, Apple, Google &
Microsoft in one query:
select * from yahoo.finance.quotes where
symbol in ("YHOO","AAPL","GOOG","MSFT")
38. Shorten a URL:
insert into yahoo.y.ahoo.it (url, keysize) values
('http:// www.javarants.com', 5)
39. Search for iphone in criagslist:
select * from craigslist.search where
location="chennai" and type="sss" and
query="iphone"
40. Scrape news from Yahoo! Finance:
select * from html where
url="http://finance.yahoo.com/q? s=yhoo"
and
xpath='//div[@id="yfi_headlines"]/div[2]/ul/li
/a’
41. Select, filter data from google spreadsheets:
select * from csv where
url="https://docs.google.com/spreadsheet/p
ub?key=0AvFtD9X4NsUjdDlfUWlmVmJIU1hZ
WUVFMDZyaS1pdkE&output=csv" and col3
like '%Mechanical%'
Interdisciplinary Research Projects at IIT Madras run by Mechanical Engg Dept.
42. Select, filter data from google spreadsheets:
select * from csv where
url="https://spreadsheets.google.com/pub?k
ey=0ArYndzim-
lbrdF8wc3A5QWl1ZGRpdkxRZk80SU9zUXc&o
utput=csv" and col5 like 'Chennai%'
Details of MP’s from Chennai