2021-11-10, 05:55
I actually spent an hour this morning trying to poke the new weatherzone site to see how scrape-able it would be.
Unfortunately they're loading most of the actual data dynamically via javascript after page load now, so it's not looking good. I don't think Kodi has a module for a headless browser or similar thing that can get the js to load for subsequent scrapong.
They have an API, but it is behind auth and costs $s, so that's out.
So unless anything changes, it's not looking good for OzWeather on Kodi below <19.
Unless someone fancies backporting the BOM code to Python2, of course. Which would work. But I can't be bothered doing a whole lot of work for a legacy system, really. It wouldn't be very difficult, though...if someone is out there and willing to put in a few hours...?!
Unfortunately they're loading most of the actual data dynamically via javascript after page load now, so it's not looking good. I don't think Kodi has a module for a headless browser or similar thing that can get the js to load for subsequent scrapong.
They have an API, but it is behind auth and costs $s, so that's out.
So unless anything changes, it's not looking good for OzWeather on Kodi below <19.
Unless someone fancies backporting the BOM code to Python2, of course. Which would work. But I can't be bothered doing a whole lot of work for a legacy system, really. It wouldn't be very difficult, though...if someone is out there and willing to put in a few hours...?!