docs: update README
This commit is contained in:
12
README.rst
12
README.rst
@@ -1,15 +1,19 @@
|
|||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import logging
|
||||||
|
|
||||||
from ppgee import PPGEE
|
from ppgee import PPGEE
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
async def main():
|
|
||||||
|
async def main() -> None:
|
||||||
cpf = "00011122233"
|
cpf = "00011122233"
|
||||||
async with PPGEE(user=cpf, password=cpf) as ppgee:
|
async with PPGEE(user=cpf, password=cpf) as ppgee:
|
||||||
response = await ppgee.frequency()
|
frequency_page = await ppgee.frequency()
|
||||||
if "Opção não disponível" in response:
|
print(frequency_page.history())
|
||||||
print("Not ready yet")
|
await frequency_page.confirm()
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user