/Triton-Schedule

Converts a UCSD WebReg schedule and the official UCSD Academic Calendar to a .ICS file. A fork of Schtoics.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Schtoics

Pronounced "Skuh-tow-icks", Schtoics is a tool that converts a UCSD WebReg schedule and the official UCSD Academic Calendar to a .ICS file that can be used in Google Calendar.

This script should work indefinitely, provided UCSD does not change WebReg or the academic calendar page in any major ways. It was last checked and was working for the Spring 2021 quarter on 3/11/2021.

This was a project done for fun on my own time, I do not make any guarantees about its functionality.

Usage

There are two options, you can have the script either sign into WebReg for you and scrape the required information, or you can provide the program with an html copy of your WebReg page or just the table with your schedule on it. When providing the script with a copy of your WebReg page, make sure the file is located in the same directory as the script, and make sure the table is actually included in the file (double check by opening the .html file and look for the table there). If you do not see the table after saving the page, inspect element and copy and paste the html code for the table into a file and put it in the same document (make sure it has some sort of extension, if there is none, the script will assume you left out .html).

How to Run

  • Windows: Simply download and run the Schtoics.exe file found in releases, make sure to have Firefox installed

  • macOS/Linux: Compile it on your own, sorry :(

Adding to Google Calendar

  • Go to calendar.google.com
  • Click the "+" next to "Other Calendars"
  • Choose "Create new Calendar"
  • Name it something like "UCSD Schedule" and set the timezone to LA
  • Choose "Import & Export" in the leftmost menu
  • Choose "Select file from your computer" and navigate to the Calendar.ics file (should be located in the same directory as the script)
  • Choose the calendar you created from the dropdown
  • Click import

If you have problems you can try using an incognito window or use another browser (Firefox seems to work best).

License

GNU GPLv3