Skip to content

hanzili/mcgill-seat-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McGill Seat Alert

An automated tool to check course availability at McGill University and send notifications when courses become available.

Description

This project provides a script that automatically checks the availability of specified courses at McGill University using GitHub Actions. When a course becomes available, it sends a notification via Pushover.

Setup

  1. Fork this repository to your GitHub account.

  2. Set up Pushover:

    • Create a Pushover account at https://pushover.net/
    • Create a new application in Pushover to get an API token
    • Note down your User Key and API Token
  3. Set up GitHub Secrets:

    • Go to your forked repository on GitHub
    • Navigate to Settings > Secrets and variables > Actions
    • Add two new repository secrets:
      • PUSHOVER_USER_KEY: Your Pushover User Key
      • PUSHOVER_API_TOKEN: Your Pushover API Token
  4. Configure courses:

    • Edit the config.json file in the repository:
      {
          "courses": ["COURSE1", "COURSE2"],
          "term": "YYYYMM"
      }
    • Replace "COURSE1", "COURSE2" with the courses you want to check
    • Set the "term" to the desired semester (e.g., "202409" for Fall 2024)
  5. Enable GitHub Actions:

    • Go to the "Actions" tab in your forked repository
    • You should see the "Check Course Availability" workflow
    • Enable the workflow if it's not already enabled

Usage

Once set up, the GitHub Action will run automatically every 10 minutes to check course availability. You can also manually trigger the workflow:

  1. Go to the "Actions" tab in your repository
  2. Select the "Check Course Availability" workflow
  3. Click "Run workflow"

You will receive a Pushover notification when any of your specified courses become available.

Customization

  • To change the check frequency, edit the cron schedule in .github/workflows/course_check.yml
  • To modify the script behavior, edit register.py

Disclaimer

This tool is for educational purposes only. The user is responsible for any consequences of using this script, including potential violations of McGill University's registration policies.

About

McGill vsb scraper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages