This Python script continuously checks seat availability for a class at Texas A&M University. When a seat becomes available, the script sends a notification to a specified Discord channel using a webhook.
-
Python 3.x
-
Google Chrome browser (as the script uses the Chrome webdriver)
-
Libraries:
selenium
andrequests
Install them using:
pip install selenium requests
-
ChromeDriver: Ensure you have ChromeDriver downloaded and added to your system's PATH, or the same location as your script.
- Update the
DISCORD_WEBHOOK_URL
variable in the script with your Discord webhook URL. - If the URL of the registration page changes in the future, update the
REGISTRATION_URL
variable.
-
Run the script:
python main.py
-
A Chrome browser window will open, navigating to the registration page.
-
Manually log in to the registration portal using your credentials.
-
After choosing your registration term, find the course you want to monitor under "Courses" and click on the sections button next to it to bring up all of the available sections.
-
After navigating to the sections page of the class, go back to the terminal and press
Enter
to continue. -
The script will check for seat availability every 60 seconds. If a seat is available, you'll get a notification on Discord
- The script uses a specific CSS selector (
span.css-1np60a3-highlightCss
) to detect seat availability. If the website's structure changes in the future, you may need to update this selector.