Skip to main content

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

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vt-timetable-0.2.6.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

vt_timetable-0.2.6-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page