Python banking code

quentin2121 Posted messages 9063 Registration date   Status Member Last intervention   Ambassadeur -  
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

  1. yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   Ambassadeur 1 588
     

    hello

    Account={"number":"XXXXXXXXXXX","product":"Savings Account"} print(Account)
    0
    1. quentin2121 Posted messages 9063 Registration date   Status Member Last intervention   1 313
       
      ​ 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",

      0
    2. Diablo76 Posted messages 344 Registration date   Status Member Last intervention   140 > quentin2121 Posted messages 9063 Registration date   Status Member Last intervention  
       

      Well, I see you've discovered the copy-paste shortcuts...

      0
    3. quentin2121 Posted messages 9063 Registration date   Status Member Last intervention   1 313 > Diablo76 Posted messages 344 Registration date   Status Member Last intervention  
       

      To copy, paste the error message from the console. For the code, I can't do it.

      For this Python banking code error, do you think it's the Crédit Agricole server that is refusing the connection?

      0
    4. cliquetis > quentin2121 Posted messages 9063 Registration date   Status Member Last intervention  
       

      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...

      0
    5. quentin2121 Posted messages 9063 Registration date   Status Member Last intervention   1 313 > cliquetis
       

      Thanks for the information.

      Now it works with a change of comma and space on line 2. But when running with pyinstaller, the CMD closes, even after adding input() at the end of the code? Any idea for a fix?

      0
  2. Phil_1857
     

    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...

    0