Skip to main content

Concordia Class Search Python module and command line tool

Project description

https://img.shields.io/pypi/v/concordia-class-search.svg 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

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
concordia_class_search-1.0.4-py3-none-any.whl (11.1 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 5, 2018
concordia-class-search-1.0.4.tar.gz (7.2 kB) Copy SHA256 hash SHA256 Source None Apr 5, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page