Need help with scrape

Hello people,

can someone help me to get the Temperature of this web-site: http://wetter-meschede.de

The css-selector ‘div.col-lg-6:nth-child(1) > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > b:nth-child(1)’ don’t work.

Thank you very much.

Greetings
Christian

Have you tried .temp ?

What was the error message ?
What is the actual behavior ?
Is it returning more content than expected ?
Is it returning less content than expected ?
What have you already tried ?

Share the code you used.

Sorry, but I 'm a noob. I only get an error, that nothing found. The value is unknown. I really don’t know, where I should begin.

I only use the code

select: “div.col-lg-6:nth-child(1) > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > b:nth-child(1)”

Not sure if we are looking at the same temperature, but in Edge I get the following selector:

body > div:nth-child(6) > div > div:nth-child(1) > table > tbody > tr:nth-child(1) > td.w-yy > b

Can you try this one to see if it works?

This don’t work, too. I get an error “Could not find a tag for given selector”.

What about if you try to parse the temperature string in upper right corner (with big font):

body > div:nth-child(3) > div > span.float-right.d-none.d-md-block > span

You may still face some problems, as the string includes °C, so it’s not a number. Still, that should be doable by trimming the last two characters of a string with a template (although I don’t know how exactly to do it).

Well, I tried it now and this code works for me (I put it in sensor.yaml):

- platform: scrape
  name: Temperatura Test
  resource: https://wetter-meschede.de/
  select: "body > div:nth-child(3) > div > span.float-right.d-none.d-md-block > span"

This work for me too, but I want to read the other entries like rain, wind and so on. So I think, when someone help me with the temperature in the table,I can get the other myself.