Accessing Webpage LocalStorage

I am trying to retrieve the power usage for my home from the energy provider’s portal. I am able to get the details by putting in my login credentials and the usage is shown in a graph over a 2 week period. I was able to do some investigation and found that the data is stored in the localStorage of the page as a JSON. So the data is presented on the screen from the JSON in the localStorage.

Is there a way I can access this JSON data? I have been looking at options like Python and Selenium. I also ran javascript code on the Console to retrieve the data but not sure how this can be accessed outside of the page and browser.