1.1.0 • Published 9 years ago

uc-date-scraper v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

UofC Date Scraper

This is just a simple scraper for this UofC schedule site, which I use to populate calendars with my UofC Schedule to Google Calendar app.

Format

This scraper can be simply run to produce a .json file with the format:

[
	{
		"name": "Spring",
		"year": "2016",
		"start": 0,
		"end": 1,
		"events": [
			{
				"name": "Start of Classes",
				"description": "Academic Dates",
				"month": "07",
				"day": "05"
			},
			{
				"name": "End of Classes",
				"description": "Academic Dates",
				"month": "12",
				"day": "08"
			}
			{
				"name": "Victoria Day",
				"description": "Recognized Holidays (university closed)",
				"month": "05",
				"day": "23"
			},
			...
		],
		"holidays": [
			2, ...
		]
	},
	...
]

Usage

Or, you can install and require this package with npm.

npm install --save uc-date-scraper

Then in your code:

var scraper = require('uc-date-scraper');
scraper(null, function(semesters) {
	// do stuff with semesters
});

Run

If you have nodejs/npm installed, download the project and cd into it. Then run the following commands:

npm install
npm start

A semesters.json file should be generated in the project directory.

1.1.0

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago