Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

138
Visualizações
Login to Bank via Python Requests

I've been looking into logging in to my bank (Westpac AU) through python requests and retrieving some transaction data. I've combed through the web and stackoverflow and whilst many aim for the same goal, I don't believe I haven't seen anyone providing much detail on whether it's actually possible.

The bank in question uses Javascript and it looks they use Fiserv services to encrypt(?) certain information. They do not have an API either (for personal use).

Here's my current code (though is quite amateurish, I'm only currently experimenting) -

from requests_html import HTMLSession
from bs4 import BeautifulSoup
"""
from msedge.selenium_tools import Edge, EdgeOptions


options = EdgeOptions()
options.use_chromium = True

driver = Edge(options = options)
"""


EAM_URL = "https://banking.westpac.com.au/eam/servlet/getEamInterfaceData"
LOGIN_URL = "https://banking.westpac.com.au/wbc/banking/handler?TAM_OP=login&segment=personal&logout=false"
SUBMIT_URL = 'https://banking.westpac.com.au/eam/servlet/AuthenticateHttpServlet'

headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.55",
           }

data = {"username":"", "password","halgm","brand","__RequestVerificationToken","guidID"}

with HTMLSession() as session:
    login_req = session.get(LOGIN_URL, cookies={}
                            )
    eam1 = session.get(EAM_URL)
    eam2 = session.get(EAM_URL)
    print(dict(login_req.cookies))

I don't really know where to start either.

This is my last try before I experiment with Selenium, so I thought I'd see if anyone knows. Thanks.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda