Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.31 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.31 KB

vt-timetable

A python module for scraping the Virginia Tech Timetable of Classes.

This module makes it easy to get data from the Virginia Tech Timetable of Classes using python. The most important components of the module are the search_timetable function, which directly searches the timetable with the provided parameters, and the Course class, which contains data about a course. Additionally, get_crn makes it easier to search for a specific course. The two other functions, get_semesters and get_subjects, make it possible to check which search parameters are valid.

Documentation can be found here.

Getting started

This module can be installed from the Python Package Index.

$ pip install vt-timetable

After installing the module, it can be imported with:

import vtt

Examples

Getting data about CRN 83075 for Fall 2021, and checking if there are any open spots:

course = get_crn('2021', Semester.FALL, '83075')
course.has_open_spots()

Getting a list of all MATH 2114 sections for Fall 2021 that are taking place in person:

search_timetable('2021', Semester.FALL, subject='MATH', code='2114',
                 modality=Modality.IN_PERSON)