suburbia

Premshree's (品速力) Personal Weblog

etc.

I’m listening to...
suburbia
[info]premshree

That’s the current song playing on my system. It’ll appear on my blog’s right. Requires XMMS bindings for Ruby and Ruby-GD (I don’t know the links to the websites.)

Ruby code... )

Enjoi!


Ruby API for Yahoo! Search Web Services
suburbia
[info]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!