Skip to content

Two Python scripts that scrape Trent University's academic timetable and undergraduate programs website to obtain a list of courses offered at Trent (plus course codes), degree programs offered, and professors in each department. Both scripts are made with Selenium WebDriver and output 3 .txt files containing the information mentioned previously

Notifications You must be signed in to change notification settings

laygofiona/Trent-course-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trent Course Scraper

This repo contains two Python scripts that scrape Trent University's Academic timetable and undergraduate programs webpage. The scripts are made with Selenium WebDriver. Running each script outputs a .txt file that contains the respective information.

Downloading a chromedriver that is compatible with your computer

The chromedriver installed in this repo is compatible with the mac-x64 platform. If your platform is different, delete the existing chromedriver and download a new chromedriver that fits your computer's platform from this webpage. Documentation can be found here.

Installing Selenium

In the terminal run one of the following:

pip install selenium

pip3 install selenium

python3 -m pip install selenium

Running degree_names.py

In the terminal

python3 degree_names.py

This script creates a programs.txt file containing an updated list of all degree programs offered at Trent.

Running main.py

In the terminal

python3 main.py currentYear

example:

python3 main.py 2024

This script creates two .txt files: courses.txt and faculty.txt. courses.txt contains a list of all courses offered throughout the current academic year in each department. faculty.txt contains a list of all the professors in each department.

About

Two Python scripts that scrape Trent University's academic timetable and undergraduate programs website to obtain a list of courses offered at Trent (plus course codes), degree programs offered, and professors in each department. Both scripts are made with Selenium WebDriver and output 3 .txt files containing the information mentioned previously

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages