Skip to content
Script to grab the date of the next bin collection date from the local Council website.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

🗑 Bin Day Alert ♻️

Python 3.6 GitHub code size in bytes GitHub last commit License: CC BY-NC-SA 4.0

Script to grab the date of the next bin collection from the Local Council's website.


This script requests the HTML of the Local Council's webpage. XPath expressions are then used to navigate the DOM, returning information relating to the dates various bins will be emptied (e.g. refuse, recycling, food, etc.). This information is then written to an Inky pHAT e-paper display from Pimoroni, attached to a Raspberry Pi Zero W. It is suggested the script is run regularly as a cron job.


To run the script, the following packages are required:

  • Pillow - Python Imaging Library (Fork) Pillow
  • font-fredoka-one - Font used when displaying text
  • inky - Python library for the Pimoroni Inky pHAT e-paper display
  • lxml - Used to parse the DOM of the webpage
  • requests - Requests the HTML of a webpage

Install these via pip:

pip install Pillow font-fredoka-one inky lxml requests

🔨To complete

  • Handle errors
  • Tidy script
You can’t perform that action at this time.