you are here: codestackercodes [RSS] → tag boss [RSS]

yahoo! search boss sample

# first, install bossman

gem sources -a http://gems.github.com
gem install jpignata-bossman

# the sample

require 'rubygems'
require 'bossman'
include BOSSMan

BOSSMan.application_id = "Your Application ID here"

news = BOSSMan::Search.news("Mac OS", 0, 3)
news.results.each do |result|
  puts "#{result.title} [from #{result.source}]"
end
Displaying 1 Code