Re: html parser
"'TopchetoEU' via lua-l" <[email protected]> Mon, 03 Aug 2026 10:03:13 +0000
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <WdYaakSDF65nGbDytO4PRzSRxoRP0z1kfVi9fMefjebA5e5Afrx4w0YFCVwtfdFeaCeQDjH5Udtow20f0uU-PGWynKZwedUJgfrOqJoaSls=@topcheto.eu> |
I have written my own HTML (and XML) parser and have used it with great suc= cess to scrape websites (as complex as instagram and reddit). I can't vouch= for its correctness, nor its efficiency, as I never bothered to write a te= st suite. However, it has served me well... https://git.topcheto.eu/tal/ref/master/files/lib/std/fmt/xml.lua It also has serviceable query functions for the nodes, so you can traverse = the tree easier. Not documented, so use at your own (sanity's) risk. On Thursday, July 30th, 2026 at 9:08 PM, Marcus Rohrmoser <[email protected]>= wrote: >=20 > what html parser can you recommend? I come from https://aantron.github.io= /lambdasoup/ and liked it, but want to port some stuff to lua now. >=20 > Cheers, > Marcus >=20 > -- > You received this message because you are subscribed to the Google Groups= "lua-l" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to [email protected]. > To view this discussion visit https://groups.google.com/d/msgid/lua-l/202= 60730200728.b97e4cd0f6f8c26108595a66%40mro.name. >=20 --=20 You received this message because you are subscribed to the Google Groups "= lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/WdYaa= kSDF65nGbDytO4PRzSRxoRP0z1kfVi9fMefjebA5e5Afrx4w0YFCVwtfdFeaCeQDjH5Udtow20f= 0uU-PGWynKZwedUJgfrOqJoaSls%3D%40topcheto.eu.