lua-users home
lua-l archive

Re: Web crawling in Lua

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /