boss hack u-iit-madras-2012

12
Sudhir Reddy Hacker @Yahoo Hacking BOSS

Upload: discoversudhir

Post on 06-May-2015

1.295 views

Category:

Technology


0 download

DESCRIPTION

Boss - Hack U 2012 - IIT Madras

TRANSCRIPT

Page 1: Boss hack u-iit-madras-2012

Sudhir ReddyHacker @Yahoo

Hacking BOSS

Page 2: Boss hack u-iit-madras-2012

BOSS … What ?

• BOSS = Build your Own Search Service• Open Yahoo’s core search features via web

services to let 3rd parties revolutionize Search• Monetization - Ads Service : 3rd parties

revenue share• Pay per use model. Don’t worry will give you

free access for hacking

“BOSS is a data API. It’s not a search API”

- Vik Singh, BOSS Architect

Page 3: Boss hack u-iit-madras-2012

BOSS Details

• REST based API.

• XML or JSON output

• Web, News, Image, SiteSearch, and Spelling Suggestion services

• Time span filtering for News Search

• Image attributes like height, width, etc

• Document type filtering

• Delicious Tags and Popularity

• Keyterm extraction

• Microformat and RDF data

• Extended abstracts

• Complex query combinations and filters

• Search for data in different markets

• Recognizes most search filters from Yahoo! and Google (backdoor hacks)

Page 4: Boss hack u-iit-madras-2012

BOSS … Authentication ?

• OAUTH 1.0• HTTP headers or GET params

• Self-serve sample code available– PHP: http://oauth.net/code– Perl: http://search.cpan.org/dist/Net-OAuth/– Ruby: https://gist.github.com/383159– C#:

http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs

– Java: http://code.google.com/p/oauth-signpost/

Page 5: Boss hack u-iit-madras-2012

Boss APIs … Data Request ?

http://yboss.yahooapis.com/ysearch/{service,*}?q={keywords}

http://yboss.yahooapis.com/ysearch/{service,*}service1.q={keywords}&service2.q={keywords}

Arguments: service, q, start, count, market, format, callback, sitesOperators: And, Or, +(Include), -(Exclude)

Page 6: Boss hack u-iit-madras-2012

What can I Hack ?

• Some Useful Data Sources to mashup:Y! Answers, Twitter, Youtube, Wolfram Alpha,

Delicious, Flickr, Facebook, Wikipedia, Foursquare, Open Data, IMDB, Amazon, Netflix, Craigslist, TheInfo.org

and more…

Page 7: Boss hack u-iit-madras-2012

Previous Hack: http://ask-boss.appspot.com

Page 8: Boss hack u-iit-madras-2012

Previous Hack:http://keywordfinder.org

Page 9: Boss hack u-iit-madras-2012

Previous Hack: 4hoursearch.com

Page 10: Boss hack u-iit-madras-2012

Inquisitor: Browser Extension

Page 11: Boss hack u-iit-madras-2012

Resources

• Yahoo! BOSS: http://developer.yahoo.com/boss

• YQL: http://developer.yahoo.com/yql• OAuth: http://developer.yahoo.com/oauth/• YUI: http://developer.yahoo.com/yui/• Everything@YDN :

http://developer.yahoo.com/everything.html• Google App Engine:

http://appengine.google.com• Amazon Web Services:

http://aws.amazon.com• Open Data: http://theinfo.org

Page 12: Boss hack u-iit-madras-2012

Happy Hacking