Skip to main content

PUC-Rio Microhorario Downloader

Project description

Microhorario Downloader

Descrição a adicionar

Uso

Instale a biblioteca:

# ainda nao disponivel
# pip install microhorario-dl

pip install -i https://test.pypi.org/simple/ microhorario-dl-leinadium==0.1

Importe e baixe os dados:

>>> from microhorario_dl import Microhorario

>>> micro = Microhorario.download()
<Microhorario object at ...>

>>> micro.disciplinas
[<Disciplina [ACN[1000>, <Disciplina[ACN1002]], ...]

Exporte para um json:

>>> import json

>>> print(json.dumps(micro.as_json(), indent=2))
{
    "periodo": "20221",
    "emissao": "05/04/2022 22:57 h",
    # ...
    "disciplinas": [
        # ...
    ]
}

Project details


Download files

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

Source Distribution

microhorario-dl-1.1.0a1.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

microhorario_dl-1.1.0a1-py3-none-any.whl (13.8 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