Premshree Pillai ([info]premshree) wrote,
@ 2005-03-01 21:41:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current music:Jewel - Foolish Games

Ruby API for Yahoo! Search Web Services

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!



(Post a new comment)


[info]pravi
2005-03-01 05:27 pm UTC (link)

Swaroop already written about it !!!
http://www.swaroopch.info/archives/2005/03/01/yahoo-search-python-api-howto/

He also made an application that uses this API too !!

(Reply to this)(Thread)


[info]premshree
2005-03-02 09:10 am UTC (link)
Do you know the difference between an application and an API?

(Reply to this)(Parent)


[info]freegeek
2005-03-01 08:14 pm UTC (link)
<?php // Yahoo Web Services PHP Example Code // Rasmus Lerdorf Hehe.

(Reply to this)

date range?
(Anonymous)
2005-04-15 05:53 pm UTC (link)
Sorry for the stupid question, but is there a way to limit the date range of a query?

(Reply to this)(Thread)

Re: date range?
[info]premshree
2005-04-19 04:13 am UTC (link)
I’m not sure you can do that.

(Reply to this)(Parent)

Thumbs?
(Anonymous)
2006-07-20 03:57 am UTC (link)
I'm a bit of a ruby noob, so the answer to my question may an easy
one. Is it possible to get the thumbnail for an image using
ImageSearch? If so, could someone post some example ruby code that demonstrates how to do this. I am able to get the full size image, etc but not the thumb.
Best,
Max

(Reply to this)(Thread)

Re: Thumbs?
[info]premshree
2006-08-21 12:21 am UTC (link)
Umm, the Yahoo! Web Service itself provides the thumbnail URL. However, I haven’t implemented it in the interface. You could hack it up if you like.

I need to rework the interface...

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…