Need Help with Scrape Sensor (CSS Select)

Hey, i want to use the Scrape sensor to log the listeners of following Website: www.Schwarzsender.de
In my opinion, the selector should be “#post-45 > div > div > div > div:nth-child(5) > span”.
Unfortunately, HA does not get any values with this Configuration entry:

  - platform: scrape
    name: Zuhoerer1
    resource: http://www.schwarzsender.de/
    select: '#post-45 > div > div > div > div:nth-child(5) > span'

Other fields (the title etc.) work fine.

The Code of the Website is:

<div style="width:100%;margin:auto;text-align:center;">
Zuhörer: <span class="cc_streaminfo" data-type="listeners" data-username="sender" data-mount="/986"></span>
</div>

I would be really grateful for help. I’ve been dealing with this problem for many days.

no one? :grimacing: :confused:

Everything seems correct to me… except, did you try using double quotes instead just quotes on selector?
And https instead just http in resource? And ditch the last “/” in resource?

So:

  - platform: scrape
    name: Zuhoerer1
    resource: https://www.schwarzsender.de
    select: "#post-45 > div > div > div > div:nth-child(5) > span"

Most likely it shouldn’t make a difference, but still…