Premshree Pillai ([info]premshree) wrote,
@ 2005-06-04 03:09:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current music:HammerFall - Glory To The Brave
Entry tags:code, flickr, lua, tech

Lua API for Yahoo! Search Web Services

LuaLua 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.

Anyway, not that I expect anyone to use it, but I whipped a Lua API for Yahoo! Search Web Services. Needs refactoring, I realize. Requires LuaSocket, and Roberto’s classic Lua-only XML parser.

Now, you can do stuff like this:

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.



(Post a new comment)


[info]teemus
2005-06-03 10:35 pm UTC (link)
That must be the 25th language you can code in. :) What next? Haskell?

(Reply to this)(Thread)


[info]premshree
2005-06-04 06:23 am UTC (link)
Have worked with Haskell in the past.

(Reply to this)(Parent)


seedar
2005-06-04 03:47 pm UTC (link)
The best thing you can do now is write a review about all the programming languages you learned! For example, a Python programmer can find reasons behind the motivation to learn Ruby.

(Reply to this)(Parent)(Thread)


[info]premshree
2005-06-04 07:59 pm UTC (link)
When I get some time, I’m going to find a way to do this. I was (and still do, some times) a Python guy myself, ya see, so that should help.

(Reply to this)(Parent)


[info]bluesmoon
2005-06-03 11:09 pm UTC (link)
ah, you're only the second person I know who's even heard of Lua.

(Reply to this)(Thread)


[info]appaji
2005-06-04 11:09 am UTC (link)
I use imapfilter for filtering my email, and it uses LUA. Makes me third? :-)

(Reply to this)(Parent)(Thread)


[info]bluesmoon
2005-06-04 12:24 pm UTC (link)
heh. the first is my ex-boss [info]the_little_sasi

(Reply to this)(Parent)(Thread)


[info]mannu
2005-06-04 09:16 pm UTC (link)
You're the 0th.

(Reply to this)(Parent)(Thread)


[info]bluesmoon
2005-06-04 09:21 pm UTC (link)
I don't know myself

(Reply to this)(Parent)

LUA is great
(Anonymous)
2005-06-04 06:22 am UTC (link)
They use LUA for many programmable games. Like the #1 game of 2005,
World of Warcraft. It's used for the custom interfaces. I think
LUA is ok, being nice and small, but I think I prefer Ruby.

Rudi

(Reply to this)


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