/dental-bot

Scrapes https://www.folktandvardenstockholm.se after last minute examinations

Primary LanguageJavaScript

A small bot which scrapes last minutes appointments from Folktandvården Stockholm.

See https://www.folktandvardenstockholm.se/webbokning/boka-sista-minuten/ to test in in the browser.

Built with node & prisma (MongoDB Atlas), and runs on fly.io.

I've added charts in MongoDB 🤯

Deploy

The deploy is manual - run flyctl deploy

Development

Some useful commands

  • npm start run the bot
  • npx prisma generate generate the prisma client from the schema
  • npx prisma studio launches a dashboard over the data and supports filtering/creating objects etc
  • npx prisma format formats the schema
  • flyctl logs see the application logs (not available in Logtail, since there isn't any log drains)