This app logs in to the Lambeth council gym booking site and books an activity, currently only squash, and completes the transaction.
It uses selenium webdriver to drive a browser through the steps and cheerio to scrape the current timetable. It then uses Inquirer to prompt some input from the user to book a slot.
Install node dependencies
npm install
To run the app using phantomjs:
npm run start
To run using firefox:
npm run-script start-ff
You'll need the following credentials set as environment variables to login and book an activity:
USERNAME=
PASSWORD=
CARDNUMBER=
EXPIRY_MONTH=
EXPIRY_YEAR=
SECURITY_CODE=
CARDHOLDER=