Skip to content

Automating course registration because waking up at 7:00AM is just plain cruel.

Notifications You must be signed in to change notification settings

kclejeune/RegistrationBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Registration Bot

Ever needed a class with one spot left? Get a bot to do it for you (if you're using *NIX, at least)

Dependencies

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.

Manual Install Instructions

You can alternatively install these dependencies to run the project:

  • python3
  • selenium
  • geckodriver

all further instructions will assume that Nix and Firefox are installed.

Using the Script

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!

About

Automating course registration because waking up at 7:00AM is just plain cruel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published