stevenhowes / dorset-binformation

A data scraper for the Dorset Council bin collection site
The Unlicense
0 stars 0 forks source link

Use API rather than web scrape #1

Open RobQuincey-DC opened 4 months ago

RobQuincey-DC commented 4 months ago

Hope you don't mind us contacting you here, we randomly came across your repo and thought we might suggest a new option you might not be aware of.

Our next collection data can be accessed via a set of open API calls which will provide the data you need in a more consistent format, hopefully much simpler than scraping a page!

The URLs you need are

Replace {uprn} with the UPRN of the property.

As with any API, this is provided on a best-endeavours basis, and please make sure you don't send too many requests in a short period of time or your request may be blocked.

stevenhowes commented 4 months ago

Well, that's a lot easier..