2020-06-23 13:27:04 ERROR (SyncWorker_2) [homeassistant.components.scrape.sensor] Unable to extract data from HTML
So I fired up Python:
In [5]: import requests
In [6]: url = 'https://www.accuweather.com/en/pl/gdansk/80-180/minute-weather-forecast/346299_pc'
In [7]: page = requests.get(url)
In [8]: page.status_code
Out[8]: 403
and I’m getting a 403 Forbidden as a response, although I can view the web page just fine in a browser. Looks like the site is doing some browser-sniffing to repel scrapers. Let’s do a bit of lying in the user-agent string:
In [14]: page = requests.get(url, headers={'user-agent': 'Mozilla/5.0'})
In [15]: page.status_code
Out[15]: 200
@Holdestmade thanks, but I quite well know that project;) Unfortunatelly company did not release MinuteCast for self-serve API yet. Expect that in next month but with no specified date.
@Troon, You deserve for separate, Your own comment.
I solemnly, publicly testify that you ARE a genius. My favourite one, at least in that part of Home Assistant coding.
Thank You a lot!