docs: update README

This commit is contained in:
tiagovla committed 2022-10-04 00:39:12 -03:00
1 parent bba437f0c6
commit d6889ee081
1 file changed
+8 -4
+8 -4
View File
@@ -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)