[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Web crawling in Lua
- From: Michal Kottman <k0mpjut0r@...>
- Date: Sun, 31 Jul 2011 18:51:34 +0200
On Sun, 2011-07-31 at 14:41 +0200, Dirk Laurie wrote:
> The libcurl library documentation lists two sets of Lua bindings to curl:
>
> Lua
>
> luacurl by Alexander Marinov
> http://luacurl.luaforge.net/
>
> Lua-cURL by Jürgen Hötzel
> http://luaforge.net/projects/lua-curl/
>
> Comments welcome by someone who has experience of either.
Both have a similar interface. I use them both in my little web-crawling
utility module WDM [1], so you may take a look there.
The differences essentially are:
LuaCurl:
- binds only the easy interface
- initialize with curl.new()
- passes (userparam, string) to WRITEUNCTION
Lua-cURL:
- binds also multi/shared API
- initialize with curl.easy_init()
- passes only string to WRITEFUNCTION
[1] https://github.com/mkottman/wdm/blob/master/wdm.lua