Skip to content

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

Notifications You must be signed in to change notification settings

Code-Tap/binscraper_axios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published