Nah, as you said, it could be useful in certain situations. However, what would be the most useful output?Yeah, I didn't intent to give you additional work, that's why I said to share it only if you have it already. If not, well, it will be postponed for the next time someone needs it (in Lua, since there is the WebParser variant for specific cells).
I'm thinking it should be able to extract multiple html tables and store them inside a tables table, then each table would contain tables containing headers and data (rows). Headers could also be a table containing each header string and colspan. data would contain tables of the cells in each row.
Something like:
Code:
htmlTable1= { headers = { -- Header rows with colspan information { content = "Header Content 1", colspan = 1 }, { content = "Header Content 2", colspan = 1 }, -- ...more header cells }, data = { -- Data rows { "Data Cell 1", "Data Cell 2" }, { "Data Cell 3", "Data Cell 4" }, -- ...more data rows }}
Or what do you think? Maybe that output would be too complex to work with.
Just to be clear, the output of the main function would be a table containing the html tables.
Statistics: Posted by RicardoTM — Yesterday, 6:42 pm — Replies 29 — Views 40344