This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

HTML page to Lua table
#2
LuaExpat library for parsing XML is built-in but it probably won't work because most web pages are invalid XML documents.
There are some pure Lua parsers like https://github.com/thenumbernine/htmlparser-lua, but you will have to adapt the code a little bit for it to run in LM.

Web interface uses UTF-8. All Lua string functions work only on byte level so they mostly don't care about encoding. iconv is not provided by default but can be provided as a separate package later.
Reply


Messages In This Thread
HTML page to Lua table - by Thomas - 25.02.2017, 22:00
RE: HTML page to Lua table - by admin - 27.02.2017, 07:30

Forum Jump: