Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peterborough council? #1

Closed
gr4z opened this issue Jan 27, 2020 · 1 comment
Closed

Peterborough council? #1

gr4z opened this issue Jan 27, 2020 · 1 comment

Comments

@gr4z
Copy link

gr4z commented Jan 27, 2020

Hi, any chance of the Peterborough Council code? Web page is here
https://www.peterborough.gov.uk/residents/rubbish-and-recycling/bins
You have to put in a postcode (try PE46PE), any number house. I would try myself but wouldn't know where to start!
Many thanks

@robbrad
Copy link
Owner

robbrad commented Jan 27, 2020

Hi @gr4z

There isnt a need for Beautiful soup here - Peterborough have an API that gives a ready made JSON - the Python scripts just give you this in the absense of an API.

Change the postcode as required:
https://www.peterborough.gov.uk/api/addresses/PE46PE

Find your uprn for your address
e.g. 100090181402 = 12 CANTERBURY ROAD

Then put it at the end of this url (note the date covers you to the end of the year):

https://www.peterborough.gov.uk/api/jobs/2020-1-01/2020-12-31/100090181402

This could then feed HA directly - just a tip to keep your scan interval low or you will hammer your council for data and they may block you

Let me know how you get on

Thanks
Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants