🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

jupiter-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jupiter-api

A third-party API for JupiterEd data.

0.6.4
latest
Source
npm
Version published
Maintainers
1
Created
Source

Jupiter API

This library is a third-party API to retrieve student grades, courses, and assignments from the JupiterEd education platform. Implemented using TypeScript, Node.js, and the Puppeteer web-crawling library.

Contributors

  • Taj Jethwani-Keyser
  • Alex Pan

Installation

Install jupiter-api from the npm package manager.

npm install --save jupiter-api

Usage

import Jupiter from "jupiter-api"

Jupiter.launch().then(async (jupiter) => {
    const request = {
        id: '',
        password: '',
        school: '',
        city: '',
        state: ''
    }

    const scraper = await jupiter.request(request)
    const student = await scraper.data()
    console.log(student.toString())
})

Output

{
    "name": "Student Name",
    "courses": [{
        "name": "Course 1",
        "teacher": "Teacher 1",
        "schedule": "Period M1-R1-T1-W1-F1, rm. 1",
        "grade": 100,
        "categories": [{
            "name": "Category 1",
            "grade": 100,
            "weight": 1
        }],
        "assignments": [{
            "due": "1/1",
            "name": "Assignment 1",
            "score": 10,
            "points": 10,
            "category": "Category 1",
            "graded": true
        }]
    }],
    "gpa": 100
}

Documentation

More detailed information about the API and its implementation may be found here.

License

MIT

FAQs

Package last updated on 22 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts