Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Adicionar suporte para contas Pessoa Jurídica #29

@tiagosmx

Description

@tiagosmx

Muito show sua iniciativa de automatizar o acesso ao Itaú, tou aprendendo com seu projeto, você fez um hack bem forte pra chegar até aqui.

Tenho um projeto particular usando o Selenium (o que deixa o software bem mais pesado) e preciso rodar tudo em uma máquina com o módulo warsaw de segurança instalado.

A autenticação de contas pessoa jurídica aparentemente é diferente das contas de pessoa física.
Ao tentar autenticar ocorre o seguinte erro:

AttributeError                            Traceback (most recent call last)
<ipython-input-6-20c092e346e8> in <module>
----> 1 it.authenticate()

<ipython-input-1-7fb82abd6d05> in authenticate(self)
     31         self._authenticate0()
     32         self._authenticate1()
---> 33         self._authenticate2()
     34         self._authenticate3()
     35         self._authenticate4()

<ipython-input-1-7fb82abd6d05> in _authenticate2(self)
    113         self._op2 = re.search("\$SECAPDK.uidap\(\'(.*?)\'\);", response.text).group(1)
    114         self._op3 = re.search("\$SECBCATCH.uidap\(\'(.*)\'\);", response.text).group(1)
--> 115         self._op4 = re.search('router.performRequest\("(.*?)", ', response.text).group(1)
    116         self._flow_id = re.search("var flowId=\'(.*)\';", response.text).group(1)
    117         self._client_id = re.search("var clientId=\'(.*?)\';", response.text).group(1)

AttributeError: 'NoneType' object has no attribute 'group'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions