kiwi-scraperjs
v0.5.0
Published
[![Build Status](https://travis-ci.org/Kiwi-Learn/kiwi-scraperjs.svg?branch=master)](https://travis-ci.org/Kiwi-Learn/kiwi-scraperjs)
Downloads
7
Readme
kiwi-scraperjs
This is Node.js
implementation for kiwi-scraper
Installation
npm install kiwi-scraperjs
Example Usage
'use strict';
let KiwiScraper = require('../index.js');
let ks = new KiwiScraper();
// Show all courses list
ks.listCourses((err, courses) => {
console.log(courses);
});
// Fuzzy search for courses object. return courses objects
ks.searchCourse('program', (err, res) => {
console.log(res);
});
// Courses ID to courses name. return a course name
ks.getCourseNameByID('EE62002', (err, res) => {
console.log(res);
});
// Courses ID to courses object. return a course object
ks.getCourseObjectByID('EE62002', (err, res) => {
console.log(res);
});