suburbia

Premshree's (品速力) Personal Weblog

etc.

Previous Entry Add to Memories Share Next Entry
Ruby API for Yahoo! Search Web Services
suburbia
premshree

So my employer has released APIs to play with Yahoo! Search.

So they have Java, JavaScript, Perl, PHP, Python APIs. No Ruby. :-| So I present a Ruby API for Yahoo! Search Web Services. No error handling, etc. No time, etc.

Sample usage »

require 'yahoo-ruby'

webObj = WebSearch.new('YOUR-APP_ID' ,'premshree')
p webObj.parse_results

videoObj = VideoSearch.new('YOUR-APP_ID' ,'pamela anderson')
p videoObj.parse_results

Oh yeah, you’ll need an Application ID.

Enjoi!


<?php // Yahoo Web Services PHP Example Code // Rasmus Lerdorf Hehe.