This is a program designed to register a student for a specified list of classes at Christopher Newport University. This program uses an inputted registration time slot to register the student for their classes as soon as their time slot opens.
- Install Google Chrome (https://www.google.com/chrome/downloads/)
- Install Python (https://www.python.org/downloads/)
- Install pip (https://pip.pypa.io/en/stable/installation/)
- Run
# pip install virtualenv
on the command line - Install git (https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- Clone the git repository to your local machine:
# git clone https://github.com/wdreames/class_scheduler.git
- Create a virtual environment
# virtualenv env
- Activate the environment
# source ./env/bin/activate
- Install the necessary requirements
# pip install -r requirements.txt
- Open
data/registration_info.txt
- Enter your 6 digit registration pin. Ex:
Registration key: 829379
- Enter a comma-separated list of CRN numberes for each course you want to register for. Note that the registrar will not let you register for more than 18 credits. If you try to do this the program will produce an error. Ex:
CRN Numbers: 8223, 8282, 8164, 8109, 8123
- Enter the current semester. Ex:
Semester for Registration: Fall Semester 2022
. Note that this must be formatted exactly as it appears in CNU Live. - Enter your registration time slot. Ex:
Registration date and time (YYYY-MM-DD HH:MM): 2022-03-24 07:00
would set your time slot as March 24th, 2022 at 7:00 A.M.
The data/registration_info.txt
configuration file should look similar to this once your have completed this process:
Registration key: 829379
CRN Numbers: 8223, 8282, 8164, 8109, 8123
Semester for Registration: Fall Semester 2022
Registration date and time (YYYY-MM-DD HH:MM): 2022-03-24 07:00
- Run
# python3 course_selectory.py
on the command line - Enter your CNU student ID when prompted
- Enter your CNU password when prompted. Your password is gathered using a secure input, so it will not display anything as you type.
- From here, will be automated and the program will register you for your classes as soon as your time slot opens.
- If any errors occur, confirm all of your information inside configuration file is correct, then run the program again.
- Once the program completes, the window used for registration will remain open for an additional 5 minutes. This is done to give you time to make any desired manual changes to your schedule.