Scrap sensor - help

Hi all
I am trying to scrape from this site Latest Conditions in Vrilissia (meteo.gr)

this number 32.4
image

With webscraper tool I get the following address.
.realtime div:nth-of-type(2) .lright span

image

but when I am trying the below sensor in HA it doesn’t work.

- platform: scrape
    resource: https://penteli.meteo.gr/stations/vrilissia/
    select: ".realtime div:nth-of-type(2) .lright span"
    name: Vrilissia Live Temperature
    value_template: '{{value|regex_findall_index ("(\n[0-9]+)")}}'
    unit_of_measurement: '°C'

What am I missing?

Hmmm, MS Edge shows me a different selector for temperature value:

body > div.content > div.content_values > div.col.left_col > div.col_sub.dist.boxshadow.realtime > div:nth-child(2) > div.lright > span

Can you try this one?

can you please tell me what exactly I should add in the select: ?
I am not familiar with all these.

He means that the path that you are walking should be a bit different.

  - platform: scrape
    resource: http://penteli.meteo.gr/stations/vrilissia/
    select: "body div.content div.content_values div.col.left_col div.col_sub.dist.boxshadow.realtime div:nth-child(2) div.lright span"
    name: Vrilissia Live Temperature
    unit_of_measurement: '°C'

Which shows this


note that I changed it to HTTP …with the S … I got ssl certificate errors

1 Like

Thanks! it was the ssl certificate the problem.
I added in the sensor the following and it is working as admiralstipe code also

verify_ssl: false