Script to automatically book a tennis court (on https://tennis.paris.fr)
NOTE: They recently added a CAPTCHA during reservation process. The latest version should pass through. If it fails, open an issue with error logs, I will try to find an other way.
Create config.json file from config.json.sample and complete with your preferences.
location: a list of courts ordered by preference - full list
date a string representing a date formated D/M/YYYY
hours a list of hours ordered by preference
priceType an array containing price type you can book Tarif plein and/or Tarif réduit
courtType an array containing court type you can book Découvert and/or Couvert
players list of players 3 max (without you)
To pass the payement phase without trouble you need a "carnet de réservation", be carefull you need a "carnet" that maches with your priceType & courtType combination selected previously
To run this project locally, install the dependencies and run the script:
npm install
npm startYou can start script automatically using cron or equivalent