Multiscrape selector (img / title)

A widget (Homepage-Wetter für Freiburg im Breisgau | Kachelmannwetter) contains the following text:

<div id="date-1-mo" class="wsymbol" title="Glatteisregen">
  <img src="https://kachelmannwetter.com/images/symbole/sym_freezingrain.svg" alt="Glatteisregen">
  <p>vormittags</p>
</div>                                                    

I want to extract the value ‘Glatteisregen’, but I can’t find a working selector. All I get is the word ‘vormittags’ with selector #date-1-mo, and I can’t get any further with the img or (better:) title tags. Does anyone have any ideas? Or is it mölgich to extract the raw text from this area, then I could use split to exempt the term.

It looks like it should work by specifying both the select and attribute in your config. Something like:

select: date-1-mo
attribute: title

Thank You! The tip was great, even if, strangely enough, a different value appeared at first. But now I seem to have found the right place with:

- resource: https://kachelmannwetter.com/widget/rectangle/2925177
  scan_interval: 3600
  sensor:
    - unique_id: strassenwetter
      name: Straßenwetter
      select: "#date-2-mo"
      attribute: "title"
      value_template: |
        {{ value }}
1 Like