https://github.com/kclejeune/registrationbot
Automating course registration because waking up at 7:00AM is just plain cruel.
https://github.com/kclejeune/registrationbot
python selenium
Last synced: about 2 months ago
JSON representation
Automating course registration because waking up at 7:00AM is just plain cruel.
- Host: GitHub
- URL: https://github.com/kclejeune/registrationbot
- Owner: kclejeune
- Created: 2018-05-22T04:40:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T04:15:52.000Z (over 4 years ago)
- Last Synced: 2025-07-01T02:43:36.293Z (12 months ago)
- Topics: python, selenium
- Language: Python
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```bash
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:
```bash
nix-shell --run "python3 bot.py --test --no-headless"
```
To run the script, navigate to the RegistrationBot directory and run:
```bash
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!