CaioCamatta / fit4less-bot

A Python bot to book Fit4Less time slots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fit4Less Bot

Instructions

  1. Clone repository
  2. Create virtualenv virtualenv venv and activate it source venv/bin/activate
  3. Install packages pip install -r requirements.txt
  4. Setup .env with your information
  5. Run the program python bot.py

Based on chakrakan's bot. Modified by Caio C. Coelho.

Environment File

Your .env file should live in the root of the program (same level as bot.py), and should look like this:

EMAIL="email@email.com"
PASSWORD="mypassword"
BOOKING_DAYS_FROM_NOW=2
TIME="11:00 AM"
FIT4LESS_LOGIN_URL="https://myfit4less.gymmanager.com/portal/login.asp"

Cron Job

Run crontab -e

Add to the bottom of the file

1 0 * * * env -i DISPLAY=:0.0 XAUTHORITY="$XAUTHORITY" /home/YOURUSERNAME/Documents/fit4less-bot/venv/bin/python3 /home/YOURUSERNAME/Documents/fit4less-bot/bot.py >> /home/YOURUSERNAME/Documents/fit4less-bot/cron.log 2>&1

You will likely have to change the python file

About

A Python bot to book Fit4Less time slots.


Languages

Language:Python 100.0%