22 lines
463 B
ReStructuredText
22 lines
463 B
ReStructuredText
.. code:: python
|
|
|
|
import asyncio
|
|
import logging
|
|
|
|
from ppgee import PPGEE
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
|
|
async def main() -> None:
|
|
cpf = "00011122233"
|
|
async with PPGEE(user=cpf, password=cpf) as ppgee:
|
|
attendency_page = await ppgee.attendency()
|
|
print(attendency_page.history())
|
|
await attendency_page.confirm()
|
|
await asyncio.sleep(5)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|