Hi, I’m still very new to HA. I’m trying to put something on my wife’s dashboard, if I keep her happy I get more HA time.
I am using multiscrape to get info from a webpage plain html. and then display it on her dashboard. I feel there must be a more efficient way. The webpage is plain html with a table 11 rows and 5 columns. (I control the webpage so of there is a better way to put that up let me know that also.) I feel my “scrape” is too basic and therefore crazy busy.
right now (testing) I’m only pulling a little data basically a uniquename, name, and select statement for each cell in the table. is there a more efficient route?
Doesn’t matter which way around the bin dates are, or how many of them there are: it’ll pick up the appropriate one provided it’s in the data, and this example will return unavailable if not. That’s a trivial example: you can get much more complex data structures yet they’re easy to work with.
In comparison, the scrape sensor is like trying to use character recognition to read off a screenshot — particularly on public sites, where any change of styling and layout can screw up your sensors. It should be a last resort where there is no other method available.
I’m going to be a super-pedant and note that HTML name attribute is not the same as the id attribute I suggested, nor is it valid on a <td> element: