Skip to content

Scripts to extract data from the Cornwall Council website

License

Notifications You must be signed in to change notification settings

mewejo/cornwall-council

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Cornwall Council Tools

Scripts to extract data from the Cornwall Council website.

To find your UPRN, visit the Cornwall Council website and identify your property. In the URL you should see your property reference number (likely 12 digit integer).

Requirements

  • php

Refuse collections

Output is returned as JSON.

./tools/refuse-collection <property-reference-number>
{"recycling":{"next_collection":{"date_raw":"10 Feb"}}}

Examples

I am using this with Waybar to show the recyling date in my system tray. For example:

"custom/recycling": {
  "exec": "~/cornwall-council/tools/refuse-collection 000000000000 | jq -r '.recycling.next_collection.date_raw' | awk '{print \"\" $1 \" \" $2}'",
  "interval": 86400
},

About

Scripts to extract data from the Cornwall Council website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages