lua-users home
lua-l archive

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


You can parse HTML with penlight's XML parser [1], it has a HTML mode.

[1] http://stevedonovan.github.io/Penlight/api/modules/pl.xml.html#parsehtml

On Sat, Nov 23, 2013 at 12:46 PM, luciano de souza <luchyanus@gmail.com> wrote:
> Oh! I really will wait for a rock. I have followed the instructions
> until "make && make install". As I don't understand anything about C
> compilations, I don't know if I am successful. What I know is that a
> "require('gumbo') or require('luagumbo')" does not work.
>
> For this time, while a rock does not exist, I will try to use Pascal.
>
> Thank you for your attention.
>
> 2013/11/23, Craig Barnes <craigbarnes85@gmail.com>:
>> On 23 November 2013 12:12, luciano de souza <luchyanus@gmail.com> wrote:
>>> I have downloaded Gumbo and looking at example, I felt it's really
>>> simple and what I want.
>>>
>>> However, I am not a C program and I don't know how to deal with GCC.
>>>
>>> Becose of this limitation, unfortunately, perhaps, for me, a rock
>>> seems to be crucial.
>>>
>>> If there is a simple commandline to type, it's possible that I get to
>>> install ...
>>
>> It's not as simple as it could be at the moment. I'll create a rock
>> very soon, although it'll still require that you have the Gumbo
>> library installed.
>>
>> Google only made the Gumbo code public a few months back, so it's
>> probably not available as a distro package yet, but the
>> instructions[1] are quite easy to follow.
>>
>>> if I need to edit some configuration files, looking at my
>>> past atempts, I don't know if I will able to do.
>>
>> You won't need to edit any configs, but you will need to install a
>> long list of bootstrap dependencies until Google do a proper release
>> (which is planned).
>>
>> >From memory, this should be all you need:
>>
>>   sudo apt-get install automake autoconf libtool gcc make pkg-config wget
>>
>> Then you can do:
>>
>>   wget https://github.com/google/gumbo-parser/archive/master.tar.gz
>>   tar xzf master.tar.gz
>>   cd gumbo-parser-master
>>
>> and follow the readme[1] from there.
>>
>> [1]: https://github.com/google/gumbo-parser#installation
>>
>> If that sounds like too much trouble, it might be best to wait a while
>> for a package+rock.
>>
>>
>
>
> --
> Luciano de Souza
>