Code-Tap / binscraper_axios

Node Script to scrape bin collection types and dates for Walsall City Council

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

binscraper_axios

Node and Python Scripts to scrape and display visual bin collection day notification Walsall City Council and current date

Before you do anything you will need to create a .env file with the following info

ID=112233445566 
DURATION='?weeks=2'

you can obtain the relevent ID from this page (https://www.walsall.gov.uk/Waste/bincollections) by entering a valid postcode. on the next page you simply need to open your dev tools and pull the refrence number for the required address.

Run Maunally: Install dependencies with

yarn install

run with

yarn run all

Alternatively Build the docker container:

docker build -t bintool .
docker run -d --privileged --restart=always bintool

The --privileged flag is required to allow the docker container to access the GPIO Pins of the raspberry pi.

Parts List for project:

  • Raspberry pi
  • RaspIO Full pHAT
  • Pimoroni Scroll pHAT
  • Pimoroni Four Letter pHAT
  • Web Connectivity

Parts Used projectExample1 projectExample2

About

Node Script to scrape bin collection types and dates for Walsall City Council


Languages

Language:Python 62.9%Language:JavaScript 34.1%Language:Dockerfile 3.0%