python 通登录银行_登录银行网站并通过脚本检查交易的最佳方式?

我正试图通过登录银行网站并在向客户发布商品之前检查我的交易来实现我的业务自动化。我正在尝试使用python来实现这一点。到目前为止,它适用于facebook,我现在正在银行网站上试用。但我在想,如果网页有变化,这种方法就行不通了。还有其他的最佳方法吗?这里没有提供API,谢谢你的建议。这是密码from splinter import Browser

#userid

user_email = 'username'

# takes the password for the user account needed

user_pass = 'password'

# loads the firefox broswer

browser= Browser('firefox')

#selects bank as the website to load in the browser (have to load twice because the bank directs it to the main site for the first time)

browser.visit('https://www.cimbclicks.com.my/wps/portal/!ut/p/c0/04_SB8K8xLLM9MSSzPy8xBz9QJ_89Mw8_YJ0RUUAk9OZqw!!/')

browser.visit('https://www.cimbclicks.com.my/wps/portal/!ut/p/c0/04_SB8K8xLLM9MSSzPy8xBz9QJ_89Mw8_YJ0RUUAk9OZqw!!/')

# fills the userid

browser.fill('userid', user_email)

#still working on the password part (unfinished)

browser.fill('pass', user_pass)

#selects the login button(so far doesn't work. I'm still working on how to click this image, can't find id. works for facebook though)

button = browser.find_by_id('u_0_n')

button.click()

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值