I checked the docs, looked at the css selector stuff, … googled some things… no solution so far. So I’m hoping that this community can find a solution.
Hey all
I need to know the status if a light is on with the scrape sensor from the following code:
When the light Led vensters is on it is colored in gray like this:
you need to read the docs. select: "Led vensters" is not going to work as Led vensters is not a class but a text.
On the basis that the class this element is displayed under doesn’t appear to have a unique name, you’ll probably need to use something like div:nth-of-type(x) where x is the nth occurence of that div tag in the doc. You will also need to ensure that position never changes, e.g. if a new item is dynamically displayed above that element, then you’ll end up with a different value that will not match Led vensters…
There may be a way to see if you can use .data-action="../../../action/6640/" as a selector, but I’ve not checked how that would be achieved.
More info on how BeautifulSoup works on their doc homepage: https://www.crummy.com/software/BeautifulSoup/bs4/doc/