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.

GitHub: debsahu/lxmlWebScraper

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.

Overview

Overview

Installing lxml

If working in virtual environment, install lxml using pip

$ pip3 install lxml

If working on python installation installed globally

$ sudo apt-get install python3-lxml

Home Assistant Sensor

HA Sensor