/edupage-node-js

Accessing Edupage.org via node.js and EDUPAGE-API module (mirrored)

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

Edupage Examples in Node.js collection

Clone this git repository

git clone .....

prepare secrets

  • rename '.env.EXAMPLE' to '.env'
mv .env.EXAMPLE .env
  • edit '.env' file and change username and password

file '.env' is ignored and will not be uploaded back to repo .. see '.gitignore'file

install Node js module edupage-api

npm i edupage-api

install Node.js module 'dotenv''

npm install dotenv

Run code

node file.js
file namedescription
get_login_info.jsGet login info
get_homework.jsHomework for tomorrow and +1 day
get_timetable.jsTimetable for specific dates

Examples

[X] Login info [X] Get Timetable (specific date) [X] Get Homework for tommorrow and for day after tomorrow