Giter Site home page Giter Site logo

uzh-summary-of-credits's Introduction

uzh-summary-of-credits

Protocol for interacting with the UZH summary of credits

This is a library that can authenticate against the University of Zurich summary of credits page. It is able to extract courses, grades, matriculate number and name from the page and convert it into a JSON format.

This code was used in Bestande 1.0 - 3.4 for enabling a feature which would allow users to see an overview of their courses and grades as well as their timetable.

Please note that we have since removed this feature at the request of UZH. We have not looked further into the legal situation of what can be done with this code. We are releasing this code for personal, educational and research purposes and do not suggest that you should build and app which accepts UZH credentials. This also means that we are not anymore using this code and that it can break in the future, and that we can not guarantee support for this library.

Installation

The code is not published in any registry, you have to clone this repo.

Run

npm install

to install the dependencies. The entry point is index.js which exposes multiple methods, which allow to get partial information or a function called all which gets all information. This function accepts 4 arguments:

  • Shortname
  • Password
  • Fetch function, on the server pass require('node-fetch'), on the React Native you can pass the global fetch.
  • Progress function, for example progress => console.log(progress)

Example

There is an example included in example.js which allows you to put crednetialy and which will print the response into the terminal. We suggest you put your username and password in there and run node example.js to start tinkering with the library.

See also

License

MIT

uzh-summary-of-credits's People

Contributors

dependabot[bot] avatar jonnyburger avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.