Python banking code
quentin2121 Posted messages 9063 Registration date Status Member Last intervention -
Hello,
Account[numero="XXXXXXXXXXX",produit=Deposit Account]
error
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
:
2 answers
-
yg_be Posted messages 23437 Registration date Status Contributor Last intervention Ambassadeur 1 588
hello
Account={"number":"XXXXXXXXXXX","product":"Savings Account"} print(Account)-
from creditagricole_particuliers import Authenticator session = Authenticator(username="XXXXXXXXXXX", password=[1, 2, 3, 4, 5, 6], department=999) from creditagricole_particuliers import Accounts accounts = Accounts(session=session) for acc in accounts: print(acc) output Compte[numero=xxxxxxxxxxx, produit=Compte de Dépôt] accounts = Accounts(session=session) print(accounts.as_json()) from creditagricole_particuliers import Accounts account = Accounts(session=session).search(num="<n° de compte bancaire>") print(account) account = Accounts(session=session).search(num="<n° de compte bancaire>") print(account.as_json()) from creditagricole_particuliers import Accounts account = Accounts(session=session).search(num="<n° de compte bancaire>") print(account.get_solde()) from creditagricole_particuliers import Accounts # search account account = Accounts(session=session).search(num="<n° de compte bancaire>") # get operations operations = account.get_operations(count=30) for op in operations: print(op) [Cliquer et glisser pour déplacer]
line 3:
session = Authenticator(usernam
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\creditagricole_particuliers\authenticator.py", line 21, in __init__
self.authenticate()
File "C:\Users\quent\AppData\Local\Programs\Python\Python311\Lib\site-packages\creditagricole_particuliers\authenticator.py", line 84, in authenticate
raise Exception("[error] securitycheck: %s - %s" % (r2.status_code, r2.text))
Exception: [error] securitycheck: 500 - {"error":{"code":"technical_error","message":"A technical incident occurred during your connection. Please re-enter your username and your personal code."},"forceDisplay":false}
e="XXXXXXXXXXX",
-
-
-
Hello.
session = Authenticator(username="XXXXXXXXXXX", password=[1, 2, 3, 4, 5, 6], department=999)
I don't think your username is that, nor your password or your bank department.
However, you should still be careful with this kind of module; not everything on pypi is 100% "safe" from a security standpoint. Always be cautious.
And also be careful not to post information about yourself on forums, so remove your account number from your messages...
-
-
-
Hello,
Is this all you have to show us?
You should display the code
What is Account?
product= Deposit account, what is a deposit account?
If it's a variable, with spaces, that's weird...