From d6889ee0813bc3f0c48820a6452056265d3764f8 Mon Sep 17 00:00:00 2001 From: tiagovla Date: Tue, 4 Oct 2022 00:39:12 -0300 Subject: [PATCH] docs: update README --- README.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 3830b53..bbccaef 100644 --- a/README.rst +++ b/README.rst @@ -1,15 +1,19 @@ .. code:: python import asyncio + import logging + from ppgee import PPGEE + logging.basicConfig(level=logging.INFO) - async def main(): + + async def main() -> None: cpf = "00011122233" async with PPGEE(user=cpf, password=cpf) as ppgee: - response = await ppgee.frequency() - if "Opção não disponível" in response: - print("Not ready yet") + frequency_page = await ppgee.frequency() + print(frequency_page.history()) + await frequency_page.confirm() await asyncio.sleep(5)