Air Quality component with data taken from web

I’ve written simple python scrapper myself and set rgb led according to level but I don’t think scrapping is a best way to do it.
Aqi.cn provides widgets that you can embed withing page. They have some javascript that retrieves the data and displays it. My idea here would be to use what AQI gives as it won’t cause any problems on their side while automatic scrapping can cause some server overloads.
Anyway the code AQI provides is quite simple to paste but I don’t think we have a container in HA that we can use to embed it.
Problem would be that we wouldn’t be able to react to air quality data as we wouldn’t have the value available just displayed ex. couldn’t turn off ventilation when pollution outside would be too high.