• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
BOSS
 

BOSS

on

  • 1,064 views

Slides for Rahul Hampole's BOSS talk for Yahoo! Hack Europe: London 2013.

Slides for Rahul Hampole's BOSS talk for Yahoo! Hack Europe: London 2013.

Statistics

Views

Total Views
1,064
Views on SlideShare
1,064
Embed Views
0

Actions

Likes
1
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Add Images here
  • Choose a funny image here

BOSS BOSS Presentation Transcript

  • HACKING WITH YAHOO!BOSSRahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss
  • WHAT DOES BOSS GIVE YOU? Search Data and Infrastructure Monetization (We give you Ads!!) Support and ToolsBOSS is a service that provides you (thedeveloper) flexible access to different types ofdata from Yahoo and allows you to buildpowerful commercial applications with thatdata.BOSS provides you Search Advertisingand simple terms so that you canmonetize that innovative product andcontinue to invest your personal time init.BOSS also gives you Support and Tools toget your product working.
  • Restful XML and JSON APISearch Data - Web, Image, Spelling, News, Also Try, Blogs and Search AdsGeo Services – Placefinder & PlaceSpotterFlexibility to Blend and Re-rank Results Create your own look and feelChange rankingMix it with other API’soAuth based AuthenticationWHAT DOES THAT MEAN?
  • WHAT ELSE DO YOU GETWeb and Limited Web results (smaller subset) Complex query combinations and filters Searches for content on multiple marketsImage attributes like height, width, etcTime span filtering for News SearchExtended abstractsRecognizes most search filters from Yahoo! and Google (backdoor hacks)
  • YAHOO! BOSS GEO SERVICSPlacefinder1. Geocoding – Give it anaddress and get back aLat/Lon2. Address normalization3. Reverse Geocoding – Giveit a lat/long and get anaddressPlaceSpotter1. Recognize geographicalentities available in textualcontent2. Understand the meaningof those entities3. Couple with Geoplanet tounderstand geographicalmeaning6Learn more at http://developer.yahoo.com/boss/geo/
  • HOW DO I HACK WITH IT?
  • THE QUERYTells you what the user is looking forPowers secondary APIsCan be generated by a search box, URL,tags or keyword extraction from the page.Generates related topicsThe Query is your BFF!e.g. http://yboss.yahooapis.com/ysearch/web?q=“Dark Knight”&format=xml
  • SAMPLE CALLSGetting multiple data sets /ysearch/web,images,news?q=obama /ysearch/web,images,news?web.q=obama&images.q=flower&news.q=egyptSearching through sites A Simple Movie Search /ysearch/web?q=“Dark Knight”&sites=movies.yahoo.com,netflix.com,imdb.comAND/OR operators /ysearch/web?q="stevejobs"AND((ipad)OR(iphone))&sites=bestbuy.com,newegg.com
  • UNARY OPERATORSSearch for Batman but not “Dark Knight” q=(batman -“Dark Knight")Find pages with “Heath Ledger” but not “DarkKnight” q=+”heath ledger”–”DarkKnight”&sites=movies.yahoo.com
  • OUTPUT
  • IMAGE SEARCH PARAMETERSSearch for images that are not offensive /ysearch/images?q=“san francisco”&filter=yesSearch for images that are wallpaper size /ysearch/images?q=“san francisco”&dimensions=wallpaperSearch for a image at a certain refer URL /ysearch/images?q=yahoo&refererurl=http://www.flickr.comInteresting Output Fields format, file size, height, width, title, total result count
  • NEWS SEARCH PARAMETERSSearch news that is less than 7 days old/ysearch/news? q=osama&age=7dSearch news that is between 20hrs and 2 days old/ysearch/news?q=osama&age=20h2dRe-rank news results by date/ysearch/news?q=osama&ranking=trueInteresting Output FieldsSource, Date, Source URL
  • BOSS + YQLTable Name: boss.searche.g. select * from boss.search where ck=… andsecret=… and q=„yahoo‟ and service=„news‟Parameters ExampleConsumer Key ck -Consumer Secret secret -Query Term q ‘yahoo’Service service ‘news’
  • UNDERSTAND OAUTHIdentificationConsumer Key – Used to make a call to the APIConsumer Secret – Used for 3 legged oAuth (not used for BOSS)Making a call(www.oauth.net/code)-Consumer Key-Nonce – Random string generated by oAuth (prevents replay attacks)-Signature – Generated by library-Signature Method – Various types of methods supported (e.g. HMAC-SHA1)-oAuth Timestamp –Unix time (valid for 5 minutes only)-oAuth version – 1.0We have code samples in most languages on BOSS Site
  • HACK IDEAS AND USEFUL API’SRealTime Twitter/Facebook APIMobile ApplicationsVideo YouTube data APIVertical search engines Programmable web has interesting API‟sLocal + Search Pull entities using Placespotter andrecognize relationships between contentChrome extensions
  • HACK AWAY1. We have BOSS Keys available for you Find me if you don’t have them2. Code samples in the BOSS Docs3. In depth demo later today Build a location aware news service17
  • HACK AWAY!!Rahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss