2021-04-22, 03:28
(2021-04-22, 03:09)DavidFW1960 Wrote: They have an API you can use (Their new app uses it) You shouldn't need to scrape anything..
Do they, though? Obviously for this I am not going to use their official paid services - http://reg.bom.gov.au/other/charges.shtml - for a Kodi addon.
I don't really call this an API as such - http://www.bom.gov.au/catalogue/data-feeds.shtml - if that is what you mean.
The big issue is how to find locations and then match that to data. It's not hard at all to scrape their places search page, and then to scrape the various results pages for the place....less obvious how, given a place, one then uses it with that XML mess.
From what I can see, other folks have concluded that scraping is easier than the API here - e.g. https://pypi.org/project/weather-au/
But I may well be missing something - the BOM site is a chaotic mess really. If there is a nice tidy 'search for a place' and given a place here's the weather and radar data' - that would of course be great, but I am not sure there is? If you know of one, can you point me at it? (The new BOM app is pretty crappy, just as a side note....I really miss Pocket Weather!)