Concordia Class Search Python module and command line tool


License
MIT
Install
pip install concordia-class-search==1.2.1

Documentation

concordia-class-search

https://travis-ci.org/francisbergin/concordia-class-search.svg?branch=master

overview

concordia-class-search is a project containing a Python module used to interact with Concordia University Class Search to view classes and their status. It also contains a simple app to view this information from the command line.

warning

This project uses web scraping to get its data; when the target website is modified or down, this library breaks. Please keep this in mind when using it.

requirements

  • Python 3.6

installation

$ pip install concordia-class-search

usage

As a Python module:

import concordia_class_search

terms = concordia_class_search.terms()
careers = concordia_class_search.careers()
subjects = concordia_class_search.subjects()
classes = concordia_class_search.class_search(term=2171, career='ugrd', subject='comp', number=352)

As a command line application:

$ ccs search -t 2172 -c ugrd -s comp -n 346
COMP 346 - Operating Systems
  number  section         daytime             room         instructor    dates                    term       status
--------  --------------  ------------------  -----------  ------------  -----------------------  ---------  ---------
    1764  DJ-X-LAB 13 Wk  Th 7:45PM - 9:35PM  TBA          Staff         09/05/2017 - 12/04/2017  Fall 2017  Open
    1765  DI-X-LAB 13 Wk  Th 5:45PM - 7:35PM  TBA          Staff         09/05/2017 - 12/04/2017  Fall 2017  Wait List
    1766  DDDB-TUT 13 Wk  Tu 8:30PM - 9:20PM  TBA          Staff         09/05/2017 - 12/04/2017  Fall 2017  Open
    1767  DDDA-TUT 13 Wk  Tu 8:30PM - 9:20PM  TBA          Staff         09/05/2017 - 12/04/2017  Fall 2017  Open
    1768  DD-LEC 13 Wk    Tu 5:45PM - 8:15PM  FG B050 SGW  Staff         09/05/2017 - 12/04/2017  Fall 2017  Open

development

$ git clone https://github.com/fbergin/concordia-class-search.git && cd concordia-class-search
$ python3 -m venv venv && source venv/bin/activate
(venv) $ pip3 install -e .[dev]

testing

(venv) $ make tests