Ever needed a class with one spot left? Get a bot to do it for you (if you're using *NIX, at least)
Clone the repository and navigate to its directory.
git clone https://github.com/kclejeune/RegistrationBot.git
cd RegistrationBot
This project uses Nix to manage dependencies. You can install it on macOS with
sh <(curl -L https://nixos.org/nix/install) --daemon --darwin-use-unencrypted-nix-store-volume
or on Linux with
sh <(curl -L https://nixos.org/nix/install) --daemon
Finally, ensure that Firefox is installed.
You can alternatively install these dependencies to run the project:
python3
selenium
geckodriver
all further instructions will assume that Nix and Firefox are installed.
WARNING: YOU MUST MAKE SURE YOUR COMPUTER WILL NOT SLEEP BEFORE 7:00. PLUG IT IN AND CHECK THE SETTINGS
It is highly recommended to use a utility to prevent your computer from sleeping.
I'd recommend running something like brew cask install keepingyouawake
or sudo apt install caffeine
, which will allow you to 'caffeinate' your computer overnight. On macOS, you can
do this with caffeinate -i nix-shell --run "[see command below]"
.
To test the script in an actual browser window, run:
nix-shell --run "python3 bot.py --test --no-headless"
To run the script, navigate to the RegistrationBot directory and run:
nix-shell --run "python3 bot.py --threads 8"
Follow the instructions to enter your username and password (type carefully, you can't see the prompt for security reasons). That's it, good luck!