Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
signatures-iut-limoges
Advanced tools
Fetch your averages for each semester of the IUT (University Institute of Technology) of Limoges in a very simple way.
Readme
Fetch your averages for each semester of the IUT (University Institute of Technology) of Limoges in a very simple way.
Note that this module is only usable for students of the IUT of Limoges, and that is because you need to authenticate using your Biome (Unilim) credentials.
You can use whatever package manager you want, here are some examples.
# NPM
npm install signatures-iut-limoges
# Yarn
yarn add signatures-iut-limoges
# pnpm
pnpm add signatures-iut-limoges
readSignaturesPage()
When you're using this function, you must be connected to the University's VPN or the Eduroam network.
Since you might have SSL issues due to self-signed certificate (only when the website is not publicly available), you have to use process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
on Node.js to avoid errors.
If you want to avoid doing this, you'd have to import yourself the certificate in your project and Node.
If you don't want to import the certificate AND/OR you're not using the VPN/Eduroam network, you should look into the Web VPN method below.
If you're a student and want to learn more about the University's VPN, you can read this article from Unilim support - you have to be logged in to read it.
readSignaturesPageFromWebVPN()
There's no need for the machine to be connected to either the VPN or the Eduroam network. You just run this function and it works out of the box.
The only constraint is that three more requests are done in the process to login to the University's Web VPN.
If you're a student and want to learn more about the University's Web VPN, you can read this article from Unilim support - you have to be logged in to read it.
// If you're on the VPN/Eduroam network
import { readSignaturesPage } from "signatures-iut-limoges";
// or if you want to use the Web VPN
import { readSignaturesPageFromWebVPN } from "signatures-iut-limoges";
const html = await readSignaturesPage("username", "password");
// or if you want to use the Web VPN
const html = await readSignaturesPageFromWebVPN("username", "password");
// Now, we have to dump the HTML into something readable.
import { dumpSignatureResponse } from "signatures-iut-limoges";
const dump = dumpSignatureResponse(html);
// Do whatever you want with the dump !
console.log(dump);
Return type of dumpSignatureResponse
is SignaturesDump
, let's see what you can do with this.
Note that everything written below is just extracted from the source code itself, you can look at the types directly here: types.ts.
interface SignaturesDump {
firstName: string
familyName: string
className: string
semesters: Array<SignaturesSemesterDump>
}
interface SignaturesSemesterDump {
name: string
skills: Array<SignaturesSkillDump>
}
interface SignaturesSkillDump {
id: string
name: string
globalAverage: number
absences: number
coefficient: number
modules: Array<SignaturesModuleDump>
}
interface SignaturesModuleDump {
id: string
name: string
average: number
absences: number
coefficient: number
}
You might have to use IntelliSense to have accurate description (JSDoc) about the types, or just read the code of types as mentioned previously.
FAQs
Fetch your averages for each semester of the IUT (University Institute of Technology) of Limoges in a very simple way.
The npm package signatures-iut-limoges receives a total of 0 weekly downloads. As such, signatures-iut-limoges popularity was classified as not popular.
We found that signatures-iut-limoges demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.