boss hack u-iit-madras-2012

21
Sudhir Reddy Hacker @Yahoo Hacking BOSS

Upload: discoversudhir

Post on 20-Jan-2015

1.480 views

Category:

Technology


0 download

DESCRIPTION

IIT Madras Hack U 2012 - Hacking BOSS

TRANSCRIPT

  • 1. Hacking BOSSSudhir ReddyHacker @Yahoo

2. BOSS What ?Build your Own Search ServiceBOSS is a data API. Its not a search APIOpen Yahoos core search features via web services tolet 3rd parties revolutionize Search 3. What else ? Monetization - Ads Service : 3rd parties revenueshare Pay per use model. Dont worry will give you freeaccess for hacking 4. BOSS features Web, News, Image, and Spelling Suggestion services Time span filtering for News Search Image attributes like height, width, etc Document type filtering And more ! 5. Boss APIs Data Request ? http://yboss.yahooapis.com/ysearch/{service,*}?q={keyword}Arguments: service, q, start, count, market, format, callback, sitesOperators: And, Or, +(Include), -(Exclude) 6. Sample Response 7. BOSS Authentication ? OAUTH 1.0 - HTTP headers or GET params Consumer Key and Secret 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/ 8. BOSS and YQL Table Name: boss.searchParameters Example Consumer Keyck- Consumer Secret secret- Query Termq yahoo Service service news e.g. select * from boss.search where ck= andsecret= and q=yahoo and service=news 9. Searching in body and in title Searching for Dark Knight in the Title on Yahoomovies q=reviewsintitle:"darkknight"&sites=movies.yahoo.com Searching for Dark Knight in the Title in Yahoomovies containing Christian Bale q=reviews intitle:"dark knight"inbody:"christianbale"&sites=movies.yahoo.com 10. Image search parameters Search for images that are not offensive /ysearch/images?q=Yahoo Hacks&filter=yes Search for images that are wallpaper size /ysearch/images?q=Yahoo Hacks&dimensions=wallpaper Search for an image at a certain refer URL /ysearch/images?q=Yahoo Hacks&refererurl=http://www.flickr.com Interesting Output Fields format, file size, height, width, title, total result count 11. News search parameters Search news that is less than 7 days old /ysearch/news?q=lokpal&age=7dSearch news that is between 20hrs and 2 days old /ysearch/news?q=lokpal&age=20h2dRe-rank news results by date /ysearch/news?q=lokpal&ranking=trueInteresting Output Fields Source, Date, Source URL 12. Yahoo! Content Analysis API select * from contentanalysis.analyze wheretext=Yahoo Kicks off hacku at IIT Madras; 13. What can I Hack ? Some Useful Data Sources to mashup:- Wikipedia, Y! Answers, Wolfram Alpha- Twitter,Facebook, Flickr, Youtube, Delicious- Foursquare, Maps, Travel- IMDB, Amazon, Netflix,Craigslist- Open Data, TheInfo.org and more 14. Previous Hacks 15. Previous Hack: 4hoursearch.com 16. Duckduckgo.comDuckduckgo.com 17. Previous Hack:http://keywordfinder.org 18. Previous Hack:http://ask-boss.appspot.com 19. Inquisitor: Browser Extension 20. 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 21. Happy Hacking