Skip to content

Python3 Package for the most up-to-date course information scraped from uwaterloo official website

License

Notifications You must be signed in to change notification settings

arctdav/uwaterlooCourseInfoScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Scraper for UWaterloo Course Information

This Python library scraps all UWaterloo course information from its website: http://www.adm.uwaterloo.ca/infocour/CIR/SA/under.html

This library only supports Python3.6+

Please do not spam their website.

Getting Started

Install Python 3.6+

Prerequisites

In your terminal/shell, type:

python -m pip install --upgrade pip

Then install bs4, requests

python -m pip install requests bs4

Installing

Type the following to terminal/shell to install

pip install -i https://test.pypi.org/simple/ uwaterlooCourseInfoScraper

If installation successful, you will see something like this:

Successfully installed uwaterlooCourseInfoScraper-1.0.8

A Simple Example

import uwaterlooCourseInfoScraper as uwcis

print(uwcis.getCourseEnrollInfo(1201, "CS", 135))
# OUTPUT: 
# Request Successful
# [{'Class': XXXX, 'CompSec': 'LEC 001', 'EnrlCap': 90, 'EnrlTot': 71, 'Instructor': 'XXXX'}, {'Class': XXXX, 'CompSec': 
# 'LEC 002', 'EnrlCap': 90, 'EnrlTot': 65, 'Instructor': 'XXXX'}, {'Class': 6002, 'CompSec': 'TST 201', 'EnrlCap': 180, 
# 'EnrlTot': 136, 'Instructor': 'XXXX'}]

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Python3 Package for the most up-to-date course information scraped from uwaterloo official website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages