i have almost the same issue with scraping a value out of a table.
It’s one table with two columns and some rows - i’d like to get a value
in the second column and the 7th row. Using inspection and copy selector gives me
this:
‘’’’’ #showdata > table > tbody > tr:nth-child(7) > td:nth-child(2) > span
‘’’’’
Unfortunately i can’t show you the website because it’s just in my local network.
Could you please tell me how to get the value - as you already managed to get your
own value out of a table.
completely untested, but when I select the temperature I get this selector: body > table.MsoNormalTable > tbody > tr:nth-child(5) > td:nth-child(3) > p > span:nth-child(3) > nobr
There are more temperatures on the page, that’s why you got a little different selector. Tested also with added " > nobr", still HA doesn’t output anything, while https://try.jsoup.org/ gives the correct result.
mobile.andrew.jones’s solution also works, still why doesn’t the scrape…
i’ve managed to successfully set up a bunch of scrapers but there is one website giving me hell and out of stubbornness i’ve refused to give up for a while… i just cant work it out. it shouldnt be so difficult.
sensors look like this. ive tried what seems like 50 different iterations but this one has me stumped. Would appreciate it if any genius has an idea for me.