Creating a Home Assistant Web Scraper Sensor
Вставка
- Опубліковано 5 лип 2024
- Here is a demonstration of using lxml for scraping a website to extract essential HTML data and pass the data as sensor to Home Assistant.
Source Code: github.com/debsahu/lxmlWebScr... - Наука та технологія
Another great video thanks appreciate it
Nice video. - Thanks.
Do you know if this is possible using the built in 'Scrape Sensor' for Home Assistant? If so, how would you go about that? Thanks!
@@debsahu7801 Thank you for your time and examples, this was helpful. I am finding it hard to do when you have multiple of the same class name, but i will keep reading the BS documentation.
Hi I like to know if you have a scrape to log into a website what requires a password.
I like to scrape my electric company because it show what my daily use are along with a projection of the bill amount is each day. this will be useful to me and other if I can bring this into home assistant.
How to add attributes to your scrape-sensor?
I have a scrape-sensor which gets the water-temperature from a lido. So I want the coordinates as attributes.
like:
latitude: 47.3519
longitude: 8.5360
If possible I would even like to have an attribute with the website-link where I scraped the information.
Are there some informations about how I can create such attributes or how they have to be named ("link:", "source:", "web:", ...)?