Yahoo! Developer Network Blog
« Previous | Main | Next »
November 9, 2008
BOSS at the Open Hack Day in Sao Paulo, Brazil
This weekend we were in Sao Paulo, Brazil to have about 400 hackers deliver 30 hacks on the first South American Open Hack Day. Further to Erik's general thoughts on the Open Hack Day (more to follow) here's a quick overview about the BOSS related happenings.
With the idea of promoting the Yahoo Open Strategy the Yahoo speakers present (Erik Eldridge, Zach Graves and me) agreed to concentrate each on one of the components of YOS. I got the task to introduce BOSS to the hack crowd and took the obvious route by explaining how to use it to find donkeys on the web:
During the course of the hack day I had more and more hackers ask me how to get and - more importantly - how to convert and display information when using BOSS. To make this whole affair a lot easier, I decided to write a small JavaScript wrapper library for BOSS called yboss. Using this one you can for example display the top search results, images and news items for the search term "obama" with the following few lines of code:
<div id="results"></div>
<script type="text/javascript" src="yboss-lib.js">
</script>
<script type="text/javascript">
YBOSS.get(
{
searches:'search,news,images',
query:'obama',
count:10,
callback:change
}
);
function change(o){
var all = '<h4>Web Sites</h4>' + o.webHTML +
'<h4>News</h4>' + o.newsHTML +
'<h4>News</h4>' + o.imagesHTML;
var out = document.getElementById('results');
out.innerHTML = all;
}
</script>
I've seen the library used in several hacks (including the winning hack for the BOSS category) which made me very happy. It is nice to make things easier for people.
Infected by the hack spirit of the event I also decided to have a bit of pointless fun with the API and created Yahoo! Fight!, a site to compare the amount of search results for two different terms.
Please notice the amount of getting overboard with this by checking out the API this is based on and the JavaScript wrapper to style the API output. If wanted, I am happy to do a writeup on how they work.
So, why not have a go at hacking together some BOSS-based products yourself?
Chris Heilmann
Yahoo Developer Network
Posted at November 9, 2008 4:19 PM
Comments
Post a comment
Comment Policy: We encourage comments and look forward to hearing from you. Please note that Yahoo! may, in our sole discretion, remove comments if they are off topic, inappropriate, or otherwise violate our Terms of Service.
Subscribe
Recent Blog Articles
view all
The state of mobile browsers - PPK in London
Thu, 02 Jul 2009
GeoMaker - Turning web content into maps made easy
Wed, 01 Jul 2009
Tue, 30 Jun 2009
Hacking Up North : Winners of the Sunderland Hack Challenge
Fri, 26 Jun 2009
ConvergeSC web event comes to South Carolina
Wed, 24 Jun 2009
Recent Links
Junta42 blog: News Flash: Guardian Seeks to Grow through Products, Not Content
Fri, 03 Jul 2009
Twitter Approval Matrix - June 2009 - O'Reilly Radar
Thu, 02 Jul 2009
YUI 3.0 with Jonathan LeBlanc from the Yahoo Developer Network | Unmatched Style
Wed, 01 Jul 2009
Yahoo! Search Blog: VoCampers Converge at Yahoo! Headquarters in Sunnyvale
Thu, 25 Jun 2009
Make: Online : Dorkbot London June 23
Mon, 22 Jun 2009
Archives
2009
2008
2007
2006
2005


