[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to access .bz2 files with lua ?
- From: George Petsagourakis <petsagouris@...>
- Date: Wed, 14 May 2008 11:52:51 +0000 (UTC)
George Petsagourakis <petsagouris <at> gmail.com> writes:
>
> > Can you say what *precisely* you're trying to do? Now it sounds like
> > you're trying to fetch some bzip2ed XML document off a remote server.
>
> Firstly, thanks for taking the time to answer my mails :D
>
> Basically this is the intention:
>
> 1.Download http://some.webserver.org/somefile.xml.bz2
> 2.Download http://some.other-webserver.org/somefile.xml.bz2
> 3.Read the XML from it, analyze each one & store required data in database.
> 4.Combine analysis of these two data sets and produce a third bzip2ed XML.
>
> I am developing on embeded lua (using luaexpat,
> compiled libs, sqlite3, luasockets)
>
>
I am using lua-aio installation. Currently:
- check urls with sockets lib.
- download the file with curl lib.
- unbzip with bzip lib.
- read the xml with lxp lib.
- store in sqlite3 db lib.
i did my job and using lua aio was indeed nice...