The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Lua API for Yahoo! Search Web Services

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Premshree Pillai

Posts: 478
Nickname: premshree
Registered: Mar, 2004

Premshree Pillai is a Ruby evangelist, working with Yahoo!.
Lua API for Yahoo! Search Web Services Posted: Jun 3, 2005 3:58 PM
Reply to this message Reply

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
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Premshree Pillai
Latest Posts From Premshree's Personal Weblog

Advertisement

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.

Read: Lua API for Yahoo! Search Web Services

Topic: Poop Heads with LAMP on the Brain Previous Topic   Next Topic Topic: Rubilicious is Uberlicious

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use