/FindSlots-42

Personal project. Find correction slots across the 42 network, using selenium in python for webscraping, and be notified.

Primary LanguageHTML

42-slot-finder

Bot that verifies if correction slots are to be found on a specific 42 school project.

Usage

Set environment

make env

Launch

make

Once launched, you will get the instructions.

Explained

This program uses selenium to launch a Firefox browser.

It will then refresh the page to find correction slots every 42 seconds and notify with a sound and eventually email when there is an available slot on the page.

It also shows progress in the terminal like so : .....!. where . means that there are no available slots and ! means the bot found a slot on the page.

Screenshot

screenshot

Current requirements

  • python selenium # main part, actual bot
  • python time # waiting
  • python chime # for the sound notifications
  • python signal # for proper interruption handling
  • python dotenv # to keep track of email credentials in .env
  • Firefox # browser used by the bot
  • geckodriver # needed by Selenium