Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 753

Lua Scripting • Tips & Tricks Thread

$
0
0
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). ;)
Nah, as you said, it could be useful in certain situations. However, what would be the most useful output?

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    }}
That way you could feed it with the whole html code from a webparser and it would extract every table found which would be stored inside a table of tables, and each table would be structured as I mentioned earlier.

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



Viewing all articles
Browse latest Browse all 753

Trending Articles