boss hacku iitd

Post on 20-Jan-2015

1.383 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

@pradeepbv I work in the Y! Media team

Yahoo! Search BOSS

BOSS?

http//www.flickr.com/photos/jmorgan/4189271428/sizes/o/in/photostream/.jpg

What is BOSS?

Build your

Own Search Service

My shiny little search…

http//www.flickr.com/photos/jmorgan/4189271428/sizes/o/in/photostream/.jpg

Your search service…

http://developer.yahoo.com/search/boss/

What does BOSS provide?

Search Data

and

Infrastructure

Extracted from Ra One poster - http://in.movies.yahoo.com

What does BOSS provide?

Monetization

http//www.flickr.com/photos/imuttoo/1189793194/sizes/o/in/photostream/.jpg

What does BOSS provide?

Support and Tools

Yes Boss movie poster

Restful XML and JSON API

Web

Image

Spelling

News

Search Ads

What do I get?

http//www.flickr.com/photos/joeshlabotnik/419914250/sizes/o/in/photostream/.jpg

Flexibility to Blend and Re-

rank Results

Create your own look and

feel

Change ranking

Mix it with other API’s

What can I do on top?

http://www.flickr.com/photos/balajijegan/6242907231/in/photostream

Oauth based Autentication

http//www.flickr.com/photos/friarsbalsam/5736126308/sizes/o/in/photostream/.jpg

What else do I get?

Web and Limited Web results

Image attributes

like height, width, etc

Time span filtering

for News Search

Document type filtering

Extended abstracts

http//www.flickr.com/photos/acidpix/6021203584/sizes/o/in/photostream/.jpg

How DO I hack with it?

BOSS + YQL• Table Name: boss.search

• e.g. select * from boss.search where ck=… and secret=… and q=‘iitd’

Parameters Example

Consumer Key ck -

Consumer Secret

secret -

Query Term q ‘iitd’

And through the BOSS API

Getting multiple data sets /ysearch/web,images,news?q=anna

/ysearch/web,images,news?

web.q=anna&images.q=anna&news.q=lokpal

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="steve

jobs"AND((ipad)OR(iphone))&sites=bestbuy.com,newegg.com

Important: Use Braces or quotes

Unary Operators

Search for Batman but not “Dark Knight”

q=(batman -“Dark Knight")

Find pages with “Heath Ledger” but not

“Dark Knight”

q=+”heath ledger”–”Dark

Knight”&sites=movies.yahoo.com

Force auto-spelling off

q=+”drk knight”

AND OR

Searching in body and in titleSearching for Dark Knight in the Title on Yahoo

moviesq=reviews intitle:"dark

knight"&sites=movies.yahoo.com

Searching for Dark Knight in the Title in Yahoo movies containing Christian Baleq=reviews intitle:"dark knight" inbody:"christian

bale"&sites=movies.yahoo.com

Market and document specific Filters

Search for “Dark Knight” in India specific sites

q=“Dark Knight”&market=en-in

Search for “PDF’s containing “Dark Knight” q=“Dark Knight”&type=pdf

Search for MS Office type (except PPT’s) containing “Dark Knight”

q=“Dark Knight”&type=msoffice,-ppt

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.com

• Interesting 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=lokpal&age=7d

Search news that is between 20hrs and 2 days old

/ysearch/news?q=lokpal&age=20h2d

Re-rank news results by date

/ysearch/news?q=lokpal&ranking=true

Interesting Output Fields

Source, Date, Source URL

Example hacks

Duckduckgo.com

Interceder

Inquisitor: Browser Extenstion (v1)

26

Hack: http://www.inquisitorx.com/firefox/index_en.php

Ask-boss (v1)

Hack: http://ask-boss.appspot.com Code: https://github.com/saurabhsahni/Hacks/tree/master/askBOSS

webmeme.com

More resources

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

BOSS Technical Documentation:

http://developer.yahoo.com/search/boss/boss_api_guide/

YQL: http://developer.yahoo.com/yql

Fire Eagle: http://developer.yahoo.com/fireeagle/

Google App Engine: http: //appengine.google.com

Amazon Web Services: http://aws.amazon.com

oAuth: http://oauth.net/

Open Social: http://www.opensocial.org/

Open Data: http://theinfo.org

Alt Search Engines: http://www.altsearchengines.com/

Thank You!&

happy hacking

top related