Hacking with boss & cap

919 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
919
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Hacking with boss & cap

  1. 1. Hacking with BOSS & CAP Anitha Raju Vertical Intent Search anithar@yahoo-inc.com
  2. 2. Outline Overview How to Hack – Sample Queries DEMO Understanding Oauth Hack Idea
  3. 3. Over view Overview • Search and Infrastructure – Access to diff types of data – Build powerful commercial application • Monetization – Ads - $$$$ • Support How to Hack – Sample Queries DEMO Understanding Oauth Hack Idea
  4. 4. Full Picture!
  5. 5. What kind of data • RESTful XML and json data – Web, Image, Video and many many more …. – Geo services – Place finder & Place Spotter Overview DEMO Understanding Oauth Hack Idea • Blending and re-ranking New look Ranking change Mix with other API’s • Secure Oauth based Authentication How to Hack Sample Queries
  6. 6. What else • Web and limited web results – Complex query combination – Search from different market • Images attributes • Time Span – News • Extended Abstracts Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  7. 7. Geo Services • Placefinder – Understands location based on location coordinates and vice versa • Placespotter – Spots location from unstructured query http://developer.yahoo.com/boss/geo/ Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  8. 8. CAP • Detects data from unstructured query – Entities/concepts – Categories – Relationships – Wiki links • YQL Table : contentanalysis.analyze Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  9. 9. How to hack Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  10. 10. 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! Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  11. 11. BOSS Sample calls  Getting multiple data sets  /ysearch/web,images,news?q=“marissa mayer”  /ysearch/web,images,news?web.q=“marissa mayer”&images.q=“hacku”&news.q=“yahoo”  Searching through sites  A Simple Movie Search  /ysearch/web?q=“Dark Knight Rises”& sites=movies.yahoo.com,netflix.com,imdb.com  AND/OR operators  /ysearch/web?q="steve jobs"AND((ipad)OR(iphone))&sites=bestbuy.com,newegg.com  Unary operators (+/-)  /ysearch/web?q=+“heath ledger” –”dark knight” Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  12. 12. Images  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 Interesting Output Fields - format, file size, height, width, title, total result count Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  13. 13. News  Search news that is less than 7 days old /ysearch/news? q=osama&age=7d Re-rank news results by date /ysearch/news?q=osama&sort=date Interesting Output Fields Source, Date, Source URL Overview How to Hack Sample Queries Understanding Oauth Hack IdeaDEMO
  14. 14. Understand oAuth Identification • Consumer Key – Used to make a call to the API • Consumer 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 version – 1.0 Overview What type of Data? DEMO Understanding Oauth Hack Idea We have code samples in most languages on BOSS Site
  15. 15. DEMO Overview How to Hack Sample Queries Understanding Oauth Hack Idea DEMO
  16. 16. Hack Ideas  RealTime  Facebook API  Mobile Applications  Video  YouTube data API  Vertical search engines  Programmable web has interesting API’s  Local + Search  Pull entities using Placespotter and recognize relationships between content  Chrome extensions Overview What type of Data? How to Hack Sample Queries Understanding Oauth Hack Idea
  17. 17. Links • http://developer.yahoo.com/boss/search/ • http://developer.yahoo.com/boss/geo • http://developer.yahoo.com/contentanalysis/

×