robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
104 stars 73 forks source link

Dorset Council #756

Closed LiamJMajor closed 1 week ago

LiamJMajor commented 2 weeks ago

Name of Council

Dorset Council

Issue Information

Dorset council has changed their website to load collection data using JS after page load, so the current scraping method is not operationals, as the data is no on-page at the time of scrape.

Issue occured on the 6th june. Link to Allure history

Verification

RobQuincey-DC commented 1 week ago

Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.

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.

LiamJMajor commented 1 week ago

Thanks Rob, that's incredibly helpful! I searched for a while but I couldn't find an open endpoint.

Leaving this open, the above has solved my problem, but the integration is still broken, so this should remain open.

dp247 commented 1 week ago

Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.

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.

Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.

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.

You are my new favorite local government person

RobQuincey-DC commented 1 week ago

Thanks Rob, that's incredibly helpful! I searched for a while but I couldn't find an open endpoint.

Leaving this open, the above has solved my problem, but the integration is still broken, so this should remain open.

Its not advertised, and before the change that broke the scraper it didn't even use the API and did it all behind the scenes hidden away, but there's no reason not to make it available!

You are my new favorite local government person

I'm honoured!