Git Product home page Git Product logo

gym-booking-bot's Introduction

A Bot to Book Badminton Courts

How to install

  • Just download this Project to your computer.

Instructions

  • To run the program:
    • For macOS
      • Go to the output folder/directory (in Terminal)
      • Please run this command to book badminton courts: ./main <day> <time>
        • For example ./main 3 15 (if I want to book a court at 15:00 on the day after tomorrow) (Normal booking)
        • For example ./main 8 7 (if I want to book a court at 7:00 for today one week later) (Use this to rob a court.)
    • For windows OS
      • Go to the dist folder/directory (in cmd)
      • Please run this command to book badminton courts: main.exe <day> <time>
        • For example main.exe 0 15 (if I want to book a court at 15:00 today) (Normal booking)
        • For example main.exe 8 7 (if I want to book a court at 7:00 for today one week later) (Use this to rob a court.)
    • Go to the booking page. (See the following gif)
      • book
  • To login from the gym website
    • added -y after the command
    • e.g., main.exe 8 19 -y (windows OS)
  • Please start the program after 05:00 and before 00:00.
  • The program will try to book a court at that time (any court) until 00:10 the next day.
  • Please reach out to me if there are any bugs. (There should be many. ๐Ÿ˜น)

Create Executables (for my reference)

Create windows executable

  • pyinstaller --onefile main.py
  • Source

Create MacOS executable

TODOs

gym-booking-bot's People

Contributors

fb1n15 avatar ijcai201904 avatar

Stargazers

Sirius Archer avatar  avatar

Watchers

 avatar

gym-booking-bot's Issues

Date Problem

In court choosing webpage, the data-ea-id is:
button-ActivityID=HIFCASBADM ResourceID=0 Date=2021/11/1
not:
button-ActivityID=HIFCASBADM ResourceID=0 Date=2021/11/01

Solution:
change date or greap search?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.