This post originated from an RSS feed registered with Ruby Buzz
by Premshree Pillai.
Original Post: Lua API for Yahoo! Search Web Services
Feed Title: Premshree's Personal Weblog
Feed URL: http://premshree.livejournal.com/data/rss
Feed Description: Premshree's Weblog
Lua is still very much an academic language—everyone seems to whip their own version to suit their needs. But it seems kinda interesting. Actually, I’m interested in taking a look at the C API. Later.
require "YahooSearch"
obj = YahooSearch.WebSearch('premshree')
print(obj[0]['Title']) -- title of first result
print(obj[2]['Url']) -- url of third result
Maybe I’ll try doing some dumb-ass wxLua thingie later.