I’m trying to write a Python script to log into this web page and scrap the values I need. Variables user
and pass
seem to be the only thing I need to post and get in. Can anybody with Python experience guide me in the right direction? Thanks!
Have you tried the scrape component?
That’s what I want to use, but first I need to log into the web page containing the json data. The file is behind a username/password login page. I can get there with a PHP script from Windows or Mac, but I’d like to do it inside Home Assistant with a Python script. Any help would be really welcome.
You can authenticate via the scrape sensor.
Yes but I can’t find a way to do it. The web page I’m trying to log in is a plain json file, so I’n not sure how select: ".current-version h1"
works in that kind of page. Also, login values for the page are user/pass, not username/password. It looks like it’s not accepting my credentials.