[boursorama] Needs update following rename to BoursoBank
With which module do you encounter problems?
boursorama
Describe the problem you encounter
"Boursorama Banque" is now rebranded as "BoursoBank", the website moved, and so on. Consequently, woob bank doesn't work with it anymore:
Paste here the stacktrace or error message you observe
$ woob bank -b boursorama --debug list
2023-10-05 13:24:48,118:WARNING:woob:3.6:woob.py:548:load_backends Backend "edfparticuliers" is referenced in /home/blagandzig/.config/woob/backends but was not found. Perhaps a missing repository or a removed module?
Unable to load formatter "table": Please install python-prettytable
Falling back to "multiline".
2023-10-05 13:24:48,121:DEBUG:woob.config:3.6:yamlconfig.py:72:load Loading configuration file: /home/blagandzig/.config/woob/bank.storage.
2023-10-05 13:24:48,122:DEBUG:woob.config:3.6:yamlconfig.py:76:load Configuration file loaded: /home/blagandzig/.config/woob/bank.storage.
2023-10-05 13:24:48,169:DEBUG:woob.core.modules.loader:3.6:modules.py:252:load_module Loaded module "boursorama" from /home/blagandzig/.local/share/woob/modules/3.6/woob_modules/boursorama
/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/tools/backend.py:355: DeprecationWarning: Class attribute BoursoramaModule.VERSION is now unused and deprecated, you can remove it. If you do so, do not forget to increase the woob version to at least 3.4 in requirements.txt.
warnings.warn(
2023-10-05 13:24:48,268:DEBUG:woob.backend:3.6:modules.py:160:create_instance Created backend "boursorama" for module "boursorama"
2023-10-05 13:24:48,269:DEBUG:woob.config:3.6:iniconfig.py:43:load Loading application configuration file: /home/blagandzig/.config/woob/bank.
2023-10-05 13:24:48,269:DEBUG:woob.config:3.6:iniconfig.py:60:load Application configuration file loaded: /home/blagandzig/.config/woob/bank.
Account Balance Coming
---------------------------------------------------------+----------+----------
2023-10-05 13:24:48,272:DEBUG:woob.core.bcall:3.6:bcall.py:86:backend_process <Backend boursorama>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f952188c670>>
2023-10-05 13:24:48,273:DEBUG:urllib3.util.retry:3.6:retry.py:282:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-10-05 13:24:48,273:DEBUG:urllib3.util.retry:3.6:retry.py:282:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-10-05 13:24:48,276:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1231:_load_cookies Reloaded cookies from storage
2023-10-05 13:24:48,278:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:1048:_new_conn Starting new HTTPS connection (1): clients.boursorama.com:443
2023-10-05 13:24:48,310:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /connexion/saisie-mot-de-passe HTTP/1.1" 200 None
2023-10-05 13:24:48,314:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1040:internal_callback Handle https://clients.boursorama.com/connexion/saisie-mot-de-passe with PasswordPage
2023-10-05 13:24:48,380:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /connexion/saisie-mot-de-passe HTTP/1.1" 200 None
2023-10-05 13:24:48,388:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1040:internal_callback Handle https://clients.boursorama.com/connexion/saisie-mot-de-passe with PasswordPage
2023-10-05 13:24:48,467:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /connexion/clavier-virtuel?_hinclude=1 HTTP/1.1" 200 None
2023-10-05 13:24:48,468:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1040:internal_callback Handle https://clients.boursorama.com/connexion/clavier-virtuel?_hinclude=1 with VirtKeyboardPage
2023-10-05 13:24:50,530:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "POST /connexion/saisie-mot-de-passe HTTP/1.1" 302 None
2023-10-05 13:24:50,558:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /migration-domaine/cookies/debut HTTP/1.1" 200 None
2023-10-05 13:24:50,581:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1054:internal_callback Unable to handle https://clients.boursorama.com/migration-domaine/cookies/debut
2023-10-05 13:24:50,594:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /aide/messages/dashboard?showza=0&_hinclude=1 HTTP/1.1" 302 None
2023-10-05 13:24:50,595:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:1048:_new_conn Starting new HTTPS connection (1): clients.boursobank.com:443
2023-10-05 13:24:50,677:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursobank.com:443 "GET /aide/messages/dashboard?_hinclude=1&showza=0 HTTP/1.1" 302 None
2023-10-05 13:24:50,693:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /migration-domaine/cookies/debut?type=redirectNotYetMigratedOnLegacyDomain&org=/aide/messages/dashboard?_hinclude%3D1%26showza%3D0 HTTP/1.1" 200 None
2023-10-05 13:24:50,694:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1054:internal_callback Unable to handle https://clients.boursorama.com/migration-domaine/cookies/debut?type=redirectNotYetMigratedOnLegacyDomain&org=/aide/messages/dashboard?_hinclude%3D1%26showza%3D0
2023-10-05 13:24:50,714:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /dashboard/comptes-professionnels?_hinclude=1 HTTP/1.1" 302 None
2023-10-05 13:24:50,728:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursobank.com:443 "GET /dashboard/comptes-professionnels?_hinclude=1 HTTP/1.1" 302 None
2023-10-05 13:24:50,747:DEBUG:urllib3.connectionpool:3.6:connectionpool.py:546:_make_request https://clients.boursorama.com:443 "GET /migration-domaine/cookies/debut?type=redirectNotYetMigratedOnLegacyDomain&org=/dashboard/comptes-professionnels?_hinclude%3D1 HTTP/1.1" 200 None
2023-10-05 13:24:50,749:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1054:internal_callback Unable to handle https://clients.boursorama.com/migration-domaine/cookies/debut?type=redirectNotYetMigratedOnLegacyDomain&org=/dashboard/comptes-professionnels?_hinclude%3D1
2023-10-05 13:24:50,749:DEBUG:woob.core.bcall:3.6:bcall.py:92:backend_process <Backend boursorama>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f952188c670>> raised an error: AssertionError()
Bug(boursorama):
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/core/bcall.py", line 88, in backend_process
result = function(backend, *args, **kwargs)
File "/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/tools/application/base.py", line 348, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/blagandzig/.local/share/woob/modules/3.6/woob_modules/boursorama/module.py", line 190, in iter_resources
return self.iter_accounts()
File "/home/blagandzig/.local/share/woob/modules/3.6/woob_modules/boursorama/module.py", line 70, in iter_accounts
return self.browser.get_accounts_list()
File "/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/browser/retry.py", line 75, in wrapper
ret = cb()
File "/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/browser/retry.py", line 71, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/home/blagandzig/.local/venvs/woob/lib/python3.9/site-packages/woob/browser/browsers.py", line 1157, in inner
return func(browser, *args, **kwargs)
File "/home/blagandzig/.local/share/woob/modules/3.6/woob_modules/boursorama/browser.py", line 550, in get_accounts_list
assert self.no_account.is_here()
AssertionError
---------------------------------------------------------+----------+----------
2023-10-05 13:24:50,783:DEBUG:woob.backend.boursorama.browser:3.6:browsers.py:1292:dump_state Stored cookies into storage
2023-10-05 13:24:50,805:DEBUG:woob.config:3.6:yamlconfig.py:90:save Configuration file saved: /home/blagandzig/.config/woob/bank.storage.
What are the steps to reproduce the problem?
woob bank -b boursorama --debug list
What woob version are you using?
Output of woob config --version
command:
Woob config v3.6 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module boursorama |
+-----------------.------------------------------------------------------------'
| Version | 202308251212
| Maintainer | Gabriel Kerneis <gabriel@kerneis.info>
| License | LGPLv3+
| Description | Boursorama
| Capabilities | CapBankTransfer, CapTransfer, CapContact, CapBankTransferAddRecipient, CapDocument, CapCollection, CapProfile, CapBankMatching, CapBankWealth, CapCredentialsCheck, CapCurrencyRate, CapBank
| Installed | yes
| Location | https://updates.weboob.org/3/main/boursorama.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Mot de passe (default: )
'-----------------'
How did you install woob?
p="$HOME/.local/venvs"
mkdir -p "$p"
cd "$p"
rm -rf woob
python3 /usr/bin/virtualenv --python=python3 "$p/woob"
. "$p/woob/bin/activate"
python3 $p/woob/bin/pip -vv install git+https://gitlab.com/woob/woob.git@master
python3 $p/woob/bin/pip -vv install pdfminer.six
python3 $p/woob/bin/pip -vv install colorama
woob config update