Skip to main content

Obtaining data from the electronic diary of the lyceum "Liceo Scientifico A. Righi"

Project description

MIT License wakatime

INFO

This library makes it easy to retrieve data from a Mastercom account for Liceo Shientifico A. Righi (Cesena).

All operations are performed using http requests and data scraping using the beautifulsoup4 library. I had to use scraping because Mastercom does not have a full API, so some operations can be a bit slow.

Any operations can be performed with a login and password from Mastercom account.

In some cases you may get false data or a library error because I can take into account all possible scenarios of Mastercom. The data from my account was taken into account during development, but the diary has features that I don't have access to.

If you find a bug and are willing to help improve the project, you can write about it.

Documentation

In progress

Installation

The library is available on PyPi, so you can install it in the standard way:

Windows
  pip install RighiDiary
Ubuntu/macOS
  pip3 install RighiDiary

Example

from RighiDiary import authorize_user
import asyncio

my_password: str = "CoolPassword"
my_login: int = 123456


async def main():
    user = await authorize_user(login=my_login, password=my_password)
    print(user.full_name)
    print(user.agenda[0])

if __name__ == '__main__':
    asyncio.run(main())

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RighiDiary-1.0.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

RighiDiary-1.0-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page