CNN website provides a good snapshot of US stock futures market, which is great information if you are trading in stocks. I wanted to have that information handy on my dashboard, so I created a custom_component to scrape all the stock futures information from the page (I explored the scrape sensor, but it did not work). If you are interested, here’s the code (with lot of assistance from @amelchio) :
Thanks a bunch. I was using BS4 but had a lot of trouble on Bloomberg and CNN presumably because of the dynamic content. After 45 min of struggling and failing to scrape using BS4 I came to look at yours and see that you already done all the work. I look forward to reading the code to see how you implemented it but it works perfectly (until CNN changes something)