You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.env.example | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
getFromPrompt.js | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago | |
setup.js | 1 year ago | |
yarn.lock | 1 year ago |
README.md
eClass Events Scraper
Scrapes for Calendar Events in eClass using Puppeteer
Run yarn start
to get all Calendar events on eClass. The scraped data is saved in events.json
.
Example events.json
:
[
{
"course": "2021-2022 Co-op eConnect - a Community of Co-ops ",
"title": "Submit WkExp 905 Report - Fall 2021 is due",
"deadline": "Friday, 31 December, 11:59 PM",
"description": "... Long assignment description ..."
},
{
"title": "eClass Maintenance Outage",
"deadline": "Monday, 3 January, 12:00 AM » 11:59 PM",
"description": "There is a scheduled maintenance outage for eClass on January 3rd, 2022."
}
]
Why
I've missed too many assignments and quizzes because I don't check eClass regularly.
Setup
Run yarn setup
to prompt for CCID, and password.
Alternatively, you can copy the .env.example
file into .env
and fill out the variables yourself.
TODO
- Exit on incorrect password