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)