context with yahoo! boss
DESCRIPTION
This sTRANSCRIPT
Saurabh Sahni YDN Developer, Hacker, Evangelist
CONTEXT CONTENT
Jai SanthoshYDN Engineer, Hacker
http://twitter.com/jaisanth
WITH BOSS
ADS NEED CONTEXT
ADS NEED CONTENT
BOSS IS BUILD YOUR OWN SEARCH SERVICE
http://developer.yahoo.com/boss/
PROVIDES APIS
TO OUR SEARCHDATA STORES
&GEO DATA
TO BUILD YOUR OWNPOWERFUL
SEARCH APPLICATIONS
BOSS allows you to search over
Web, Images, News, Blogs,
& Geolocation
You can even monetize yourapplications using Search Ads
from BOSS
What can be done on top of BOSS?• Blend and re-rank search results
• Make you applications Geo- aware
• Your own look and feel
• Mix it with other APIs
BOSS Pricing
Free for building your hacks!!
Where do I start?
BOSS uses OAuth for security
Get a FREE consumer key and secret
http://hackyourworld.org/hacku/
Lets See it in Action!
Searching “The Dark Knight Rises”
Finding images of “The Dark Knight Rises”
select * from boss.search where q="The Dark Knight Rises" and service="images" and
ck="..." and secret="..."
Finding “The Dark Knight Rises” in IMDB, movies.yahoo.com
select * from boss.search where q="The Dark Knight Rises" and
sites="imdb.com,movies.yahoo.com" and ck="..." and secret="..."
Spell Check and Correction
select * from boss.search where q="The Dark Knight Rises" and service="spelling" and
ck="..." and secret="..."
Finding news on “The Dark Knight Rises”
select * from boss.search where q="The Dark Knight Rises" and service="news" and ck="..."
and secret="..."
select * from contentanalysis.analyze where text="Yahoo! kicks off Hackday at Gurgaon"
CONTENT ANALYSIS
select * from contentanalysis.analyze where url="http://www.cnn.com/"
CONTENT ANALYSIS FROM A URL
MAKE YOUR ADS LOCATION AWARE
navigator.geolocation
navigator.geolocation.getCurrentPosition()
YUI.use(‘gallery-geo’)
$.geolocation
CURRENT LOCATION
select * from geo.placefinder where text="Delhi"
LOCATION SEARCH
SELECT * FROM geo.placemaker WHERE documentContent = "They followed him to
deepest Africa and found him there, in Timbuktu" AND documentType="text/plain"
LOCATION ANALYSIS
Query Cheatsheet• Find images of “The Dark Knight Rises”
select * from boss.search where q="The Dark Knight Rises" and service="images" and ck="..." and secret="..."
• Find reviews of “The Dark Knight Rises”select * from boss.search where q="reviews intitle:The Dark Knight Rises" and service="web" and ck="..." and secret="…"
• Search for Avatar but not the movie: select * from boss.search where q="Avatar -movie" and ck="..." and secret="... "
• Search pdfs of “The Dark Knight Rises”select * from boss.search where q="The Dark Knight Rises" and type="pdf" and ck="..." and secret="..."
Query Cheatsheet• Find all the news of “The Dark Knight Rises”
select * from boss.search where q="The Dark Knight Rises" and service="news" and ck="..." and secret="..."
• Get long abstracts in the resultsselect * from boss.search where q="The Dark Knight Rises" and abstract="long" and ck="..." and secret="…"
• Retrieve 51-100 results of the queryselect * from boss.search where q="The Dark Knight Rises" and start=51 and ck="..." and secret="... "
EXAMPLES
duckduckgo.com
More Resources• Yahoo! BOSS: http://developer.yahoo.com/boss/ • BOSS Search Technical Documentation:
http://developer.yahoo.com/boss/search/boss_api_guide/• BOSS Geo Technical Documentation:
http://developer.yahoo.com/boss/geo/• YQL: http://developer.yahoo.com/yql • oAuth: http://oauth.net/ • Open Social: http://www.opensocial.org/ • Open Data: http://theinfo.org • Alt Search Engines: http://www.altsearchengines.com/
Questions??http://www.flickr.com/photos/reem_unique/4119729692/
http://slideshare.net/jaisanth
http://twitter.com/jaisanth
https://github.com/jaisanth/
Thanks!!