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

Scrape sensor SMHI

$
0
0

@etxttul wrote:

Hi,

I need help with a scrape sensor. At first I thought it would be quite simple, but it is not, at least not to me who haven’t worked with web pages.

Maybe some Swedish person already did this and can help. I just want to scrape one simple piece of information out of a the Swedish Meteorological hydrological institute (SMHI) home page. What I want to scrape is the regional warnings (storms and floods and such stuff),(weather is my thing, I will have more questions about this later).

This is the link to the page I’m trying to scrape.
https://www.smhi.se/q/Stockholm/2673730

This is the info I’m trying to scrape (in the red oval), right now “inga varningar” (no warnings).

I have been trying to use the built in HA scraper to do this. I started by just doing inspect in the browser, when this didn’t work I installed the scraper add-on to chrome.
The scraper add-on give me the following to scrape, “wpt-keps-warning-p” and in chrome it catches the right info. I wanted to learn so I have been trying a lot of things, on and off for weeks, but failed.

Here is the inspect for warnings

Inga varningar utfärdade.

If you click the > you will get to another page that discplays the same thing. Maybe it is easier there?

Thanks for your help in advance.

BR
Tobe

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles