1.0.0 ā€¢ Published 4 years ago

ucourse-crawler v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

uCourse-crawler

šŸŽ’ Scrape the courses info from the University of Nottingham's website. (Different campuses and academic years supported.)

Requirements

  • Nodejs
  • MongoDB (optional)

Usage

git clone https://github.com/Songkeys/uCourse-crawler.git
cd uCourse-crawler
npm i
npm start

Demo

demo

Output Methods

There are two output methods provided:

  1. MongoDB (Recommended)
  2. Local JSON file

Output (MongoDB)

For mongoDB, you will need to input a mongo connection string URI. The output will be stored in a table called course_[campus]_[year]. E.g. course_china_2020.

The output example:

output-mongodb

Output (JSON file)

For local JSON file, the output will be in a JSON format stored in /dist/[tablename].json.

The output example:

output-json

Size & Time

The estimated output size will be 2~3 MB per campus per year.

The estimated crawling time will be 30~50 mins per campus per year (depending on your network).

Todo

Resources