Skip to content

A node script to select available squash slots from a better gym and allow to place a booking.

Notifications You must be signed in to change notification settings

teneightfive/squash-booker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activity Booker

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.

To install

Install node dependencies

npm install

To run

To run the app using phantomjs:

npm run start

To run using firefox:

npm run-script start-ff

Environment variables

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=

About

A node script to select available squash slots from a better gym and allow to place a booking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published