Giter Site home page Giter Site logo

cdn-university-api's Introduction

cdn-university-api

Web API for eINFO, Canadian university program data.

Setup

  • Clone repo, install requirements.

    $ git clone https://github.com/kshvmdn/cdn-university-api.git && cd cdn-university-api
    $ pip install -r ./requirements.txt
  • Run app, should be listening at localhost:8000.

    $ python ./api.py

Usage

Output format

{
  "data": {
    "admission": {
      "basic_requirements_for_admission": [String],
      "failed_and_repeated_courses_and_courses_other_than_day_school": [String],
      "timing_and_process_for_admission_decisions": [String]
    },
    "overview": {
      "degree": String,
      "enrollment": String,
      "experiential_learning": String,
      "grade_range": String,
      "instruction_language": String,
      "notes": String,
      "ouac_program_code": String,
      "title": String,
      "university": String
    },
    "requirements": {
      "prerequisites": [String]
    }
  },
  "meta": {
    "message": String,
    "status": Number
  }
}

Endpoints

  • Use the eINFO program ID (from the URL, see below) to retrive data for that program.

    http://www.electronicinfo.ca/programs/203/ -> http://localhost:8000/api/203
    

cdn-university-api's People

Contributors

kashav avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cheolsoonim

cdn-university-api's Issues

Refactor scrapers

Looks like eINFO changed some of their templates (or maybe just class/id names), need to rewrite scrapers to work properly with the changes.

Enrollment encoding issue

Sometimes data.overview.enrollment has some weird output.

Here's an example, used this program -- odd cause there's no tabs in the text.

{
  "data": {
    "admission": {...},
    "overview": {
      "degree": "Bachelor of Science, BSc",
      "enrollment": "300\t\t\t\t\t\t\t\t\t\t\t(Enrollment number is approximate.)",
      "experiential_learning": "Practicum or internship option available",
      "grade_range": "Average: High 80s; MCV4U: Mid-80s",
      "instruction_language": "English",
      "ouac_program_code": "TAD",
      "title": "Computer Science",
      "university": "University of Toronto - St. George Campus"
    },
    "requirements": {...}
  },
  "meta": {...}
}

Might be happening because of the bracket that follows. I have no idea, will look into it.

Requirements scraper

Requirements scraper only scrapes prerequisites at the moment. Update to scrape all information from "requirement" tab. See this for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.