Skip to content

Small application to scrape afvalstoffendienstkalender.nl and make it available through a REST API

Notifications You must be signed in to change notification settings

kayhoogland/afvalstoffendienst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Afvalstoffendienst

Small application to scrape the dates of afvalstoffendienstkalender.nl and make it available through a REST API. The API exposes the reminder dates which is the date one day before the pickup date.

I personally use this with Node-RED to announce reminders through my Alexa speakers.

Getting started

Create a file named .env containing your information

POSTAL_CODE=<Postal code>
NUMBER=<House number>

Running the API

Visit https://python-poetry.org/docs/#installation to install Poetry

Install the requirements:

poetry install

Run the API:

poetry run uvicorn api:app

This will fill an SQLite database for your address. The data is exposed through FastAPI on localhost port 8000.

  • Docs: /docs
  • All dates: /dates
  • Specific date: /dates/{date}

With Docker

docker build . --tag afvalstoffendienst
docker run -p 80:80 afvalstoffendienst

About

Small application to scrape afvalstoffendienstkalender.nl and make it available through a REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published