Check every 10 minutes if a seat opened up in classes of your choosing using API endpoints and python. Includes tutorial for running on Raspberry Pi.
How to run on Raspberry Pi:
-
ssh <user>@<ip> (connect to the pi, use 'ping raspberrypi.local' to find the ip)
- Can also use: ssh <user>@raspberrypi.local
-
python3 --version (make sure python is configured)
- (if not configured)
- sudo apt update
- sudo apt install python3
- sudo apt install python3-pip
-
git clone https://github.com/weadsy/find-open-seats-python.git (clone the repo)
-
cd find-open-seats-python (enter the repo)
-
python3 -m venv venv (create virtual environment)
-
source venv/bin/activate (activate virtual environment)
-
pip install requests (install request library)
-
tmux (optional, start a tmux session if you want the script to keep running after you disconnect from ssh. Can also use 'screen')
-
python check_classes.py (run the script)
tmux attach -t 0 (reattach to the session, use 'tmux ls' to see running sessions).
tmux kill-session -t 0 (end the session)