I would like to scrape a URL that is changing daily, because in the URL there is a ‘date’ argument. Is there a way to setup a scrape sensor in which the date is a variable in the URL and automaticly filled by HA based on the current date?
For example:
http:www.thisismyurl/index.html?date=20221109
Which works out to a logic like: http:www.thisismyurl/index.html?date=$date $date = sensor.date
If somebody knows a good guide I would be very happy as well :).
I just found this integration; that might let me template my URL… but still looking into it.
What is the output of the url → a webpage, on which I want to get the forecasted kWh for my solar arrays on a clear sky (so different than the forecasts integrations that excist in which the weather plays a role)
It is possibly an issue for the custom integration you are using. But I am happy to try out the integration and your settings to see if it works for me. And y’know, thanks, because many people ignore posting properly and refuse to edit their posts. Good on you.
Seems like the CSS selector tag isn’t found. But that is what I get when I inspect the page using Chrome.
Log:
Logger: custom_components.multiscrape.sensor
Source: custom_components/multiscrape/sensor.py:163
Integration: Multiscrape scraping component (documentation, issues)
First occurred: 01:01:13 (401 occurrences)
Last logged: 07:41:13
Scraper_noname_0 # SolarEdge Clear Sky Predictions # Unable to scrape data: Could not find a tag for given selector Consider using debug logging and log_response for further investigation.