Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106537

Trouble with Multi Scrape

$
0
0

Hi
I’m trying to extract a value from a table on a simple HTML page, but I just can’t get it to work.
Multi Scrape generates the following error:

Logger: custom_components.multiscrape.sensor
Source: custom_components/multiscrape/sensor.py:163
Integration: Multiscrape scraping component ([documentation](https://github.com/danieldotnl/ha-multiscrape), [issues](https://github.com/danieldotnl/ha-multiscrape/issues))
First occurred: 15:31:21 (10 occurrences)
Last logged: 15:40:13

Scraper_noname_0 # Aktuelle Temperatur # Unable to scrape data: Could not find a tag for given selector. Consider using debug logging and log_response for further investigation.

My configuration:

multiscrape:
  - resource: https://wetter-riggisberg.ch/Messwerte.php?nr=1
    scan_interval: 60
    log_response: false
    sensor:
      - unique_id: wetter-riggisberg_temperatur_aktuell
        name: Aktuelle Temperatur
        unit_of_measurement: "°C"
        state_class: measurement
        select: "body > table:nth-child(6) > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td:nth-child(1) > table > tbody > tr:nth-child(2) > td > div"
        value_template: "{{ value.split(' ')[0] }}"

I checked the selector on the website “https://try.jsoup.org/” and it works there.

Probably not much is missing but…
Does anyone have a tip for me?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>